RESTful API for Todo app using Express and MongoDB.
- Install MongoDB, start mongod service.
- Install NodeJS.
- Use
yarn
instead ofnpm
if you want, I love Yarn. - Clone project, execute
npm install
oryarn
to install dependencies. - To run on development environment, execute
npm run dev
oryarn dev
. - To build project for production, execute
npm run build
oryarn build
. - Import postman file to your postman app for testing the APIs.
The app include 4 endpoint for CRUD tasks of todo app.
POST /user/register
- Create new user.POST /user/login
- Login.GET /user
- Get user information.DELETE /user/:id
- Delete a user.GET /task
- Get all tasks.POST /task
- Create new task.PATCH /task/:id
- Update a task.DELETE /task/:id
- Delete a task.
More detail about body
or result
of API you can directly try using Postman.