A service that helps people keep track of their board games nights, with a REST API.
Project for the Middleware Technologies for Distributed Systems course.
npm install
npm run seeds
npm start
You can browse the service starting from: http://localhost:3000/users
The tests require Python 2 or 3 and the requests
library.
- To install requests:
pip install requests
- To run the tests:
python test/test.py --verbose
- Install knex globally:
npm install -g knex
- Type
knex migrate:make NAME
Set header "Authorization" = "Bearer + JWTTOKEN"
A secret key can be generated by secret.js and set as env var
To store and load automatically env vars like TOKEN_SECRET
put them into .env
file as shown in .env.example