A Node API for Code Words, a game where you guess words. Docs available at GitHub Page
Copy .env.example
to .env
and
generate a SECRET_TOKEN
for development:
node -e "console.log(require('crypto').randomBytes(32).toString('hex'));"
Replace <SECRET_TOKEN>
in your new .env
with this token. Replace the
other <BLAH>
things in your new .env
with real values (e.g. Database
credentials).
Then run:
$ yarn install
$ yarn migrate-up
yarn start
This app uses foreman-node, so start
wraps node server.js
(in the
Procfile) with nf start
.
yarn test
is just a shortcut fornf run mocha
.yarn cov
runs the test suite insidenyc
for coverage reporting.