- Node 8.4.x
- Redis 4.0.x
- Postgresql 9.6.x
brew install yarn
brew install redis
brew install postgresql
yarn install
Override settings config/default.json
in any environment by making a copy of config/ENV.example.json
and naming it config/ENV.json
and setting the appropriate variable.
For environments that require use of environment variables, you can supply variables as defined in config/custom-environment-variables.json
.
See https://www.npmjs.com/package/config And https://github.com/lorenwest/node-config/wiki/Environment-Variables#custom-environment-variables
IMPORTANT: ensure postgres
is running before performing these steps.
Create database with createdb <database-name>
Setup environment variables in config/ENV.json
To run server in development: yarn run dev
To run server in production: yarn start
To run tests: yarn run test
To run your redis server for the session store redis-server
Access the app from localhost:3000