Skip to content

Nit-isha/Task-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task Manager project

Using Node, Express, CRUD operations, MongoDB Atlas, Mongoose


Dependencies

  • dotenv
  • express
  • mongoose

Conventions [REST API]

  • GET : app.get('/api/v1/tasks') ---> get all tasks
  • POST : app.post('/api/v1/tasks') ---> create a new task
  • GET: app.get('/api/v1/tasks/:id') ---> get single task
  • PATCH : app.patch('/api/v1/tasks/:id') ---> update task
  • DELETE : app.delete('/api/v1/tasks/:id') ---> delete task

MongoDB


Mongoose


Mongoose queries


Express error handlers