The backend system is deployed to here
The API documentation can be inspected here
The build logs - Travis CI
- Node.js v8.11.2
- Express.js v4.16.4
- PostgresSQL
- Sequelize
- mocha
- chai
Prerequisite
Homebrew
(MacOS)Chocolatey
(Windows)
Node
- Install
nvm
withbrew install nvm
. - Install
node 8.11.2
withnvm install 8.11.2
. - From the root directory of this project, run
nvm use 8.11.2
. - Run
npm install
Database
- Install PostgreSQL on your local machine. The instructions for this very from operating system to operating system.
$ brew install postgresql
- Start PostgreSQL and run on startup.
$ brew services start postgresql
- Ensure a
root
user exists on PostgreSQL with no password:
$ psql --dbname=postgres
postgres=# CREATE USER root;
postgres=# ALTER USER root WITH SUPERUSER;
- Create the database by running:
$ npm run db:create
- Create the database tables by running:
$ npm run db:migrate
To run the tests, simply run
$ npm run test
To generate the code coverage
$ npm run test:coverage