Skip to content

khoint0210/todo-back

Repository files navigation

Todo Backend

RESTful API for Todo app using Express and MongoDB.

Installation

  • Install MongoDB, start mongod service.
  • Install NodeJS.
  • Use yarn instead of npm if you want, I love Yarn.
  • Clone project, execute npm install or yarn to install dependencies.
  • To run on development environment, execute npm run dev or yarn dev.
  • To build project for production, execute npm run build or yarn build.
  • Import postman file to your postman app for testing the APIs.

Endpoints

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published