$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Following routes are implemented.
Body: { email: "[email protected]", password: "password" }
Returns: { user: { id: 1, email: "[email protected]" } }
Body: { email: "[email protected]", password: "password" }
Returns: { jwt: "JWT" }
Headers: Authorization: Bearer JWT
Returns: { user: { id: 1, email: "[email protected]" } }
Headers: Authorization: Bearer JWT
Body: { name: "Task name" }
Returns: { task: { id: 1, name: "Task name" } }
Headers: Authorization: Bearer JWT
Returns: { tasks: [{ id: 1, name: "Task name" }, { id: 2, name: "Second task" }] }