WIP
- Sequelize with postgresql
- Redis
- Node with Express
- Mocha & Chai
- ESLint Standard
npm installCopy the .sample.env into .env and fill it with your databases Urls and API keys
for run tests create a .test.env
| METHOD | URL | ACTION |
|---|---|---|
| GET | /login | get a token for perform requests on /customers |
Manage a customers list , the endpoints follow the REST API principles :
| METHOD | URL | ACTION |
|---|---|---|
| GET | /customers | get all customers |
| GET | /customers/1 | get the customer with id 1 |
| POST | /customers | create a customer |
| PUT | /customers/1 | update the customer with id 1 |
| DELETE | /customers/1 | delete the customer with id 1 |
run the API ( rely on nodemon for now) :
npm startlaunch tests (generate code coverage with istanbul as well) :
npm testdebug the application ( with a debugger statement):
npm run debuggenerate credentials:
./cli.js username password --save