WIP
- Sequelize with postgresql
- Redis
- Node with Express
- Mocha & Chai
- ESLint Standard
npm install
Copy 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 start
launch tests (generate code coverage with istanbul as well) :
npm test
debug the application ( with a debugger statement):
npm run debug
generate credentials:
./cli.js username password --save