Play party games with friends at https://gamebox.netlify.com!
- Fork this repo
- Clone to your machine
- Update the .env file with your correct local information
- Install dependencies:
npm i
- Fix to binaries for sass:
npm rebuild node-sass
- Run migrations:
npm run knex migrate:latest
- Run the seed:
npm run knex seed:run
- Check the seeds file to see what gets seeded in the DB
- Run the server:
npm run local
- Visit
http://localhost:8080/
(replace values inside < > with the appriate values)
DEV_DATABASE_NAME=<dev db name>
DEV_DATABASE_USER=<dev db username>
DEV_DATABASE_PASSWORD=<dev db password>
PROD_DATABASE_NAME=<prod db name>
PROD_DATABASE_USER=<prod db username>
PROD_DATABASE_PASSWORD=<prod db password>
HOST=<address of the db host>
REACT_APP_API_URL=<url where the api is deployed>
- Fork and clone this repo!
- Add new remote as the master branch
$ git remote add absolute-master https://github.com/lukehorak/gamebox
- Pull from master to get latest stable version before working
git pull absolute-master
- Checkout and switch to a new branch named as the feature you're working on
get checkout -b pwn-noobs
- Do local tests
- Push to your forked copy's branch on Github (not absolute-master)
git push origin pwn-noobs
- Open pull request
- Wait for merge
- Node 5.10.x or above
- NPM 3.8.x or above