Skip to content

zsarnett/FlopTheWorld

 
 

Repository files navigation

FlopTheWorld

A poker site for homegames

Getting Started

First Set is to fork the FlopTheWorld Repository and add the upstream remote. You can place the forked repository anywhere on your system.

$ git clone https://github.com/YOUR_GIT_USERNAME/FlopTheWorld.git
$ cd FlopTheWorld
$ git remote add upstream https://github.com/floptheworld/FlopTheWorld.git

Installing Node.js

Node.js is required to build the frontend. The preferred method of installing node.js is with nvm. Install nvm using the instructions in the README, and install the correct node.js by running the following command:

$ nvm install

Next, development dependencies need to be installed. First activate the right Node version and then download all the dependencies:

$ nvm use
$ npm install

Development

During development, you will need to run the development script to maintain a development build of the frontend that auto updates when you change any of the source files. To run this server, run:

$ nvm use
$ npm run develop

To run the Node JS Express Server:

$ nvm use
$ npm start

To make sure your code has no errors in Syntax/Sematics, you can run TSLint:

$ nvm use
$ npm run lint

It is recommended that you use VSCode as your Text Editor and install the following packages:

  • Prettier - Code Formatter
  • TSLint
  • ESLint
  • lit-html

Creating pull requests

If you're planning on issuing a PR back to the FlopTheWorld codebase you need to fork the project and add your fork as a remote to the FlopTheWorld repo.

$ git remote add fork <github URL to your fork>

When you've made your changes and are ready to push them change to the working directory for the project and then push your changes

$ git add -A
$ git commit -m "Added new feature X"
$ git push -u fork HEAD

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.1%
  • JavaScript 1.6%
  • HTML 1.3%