API Documentation link : https://docs.google.com/api_document
Locally running video link : https://youtu.be/Bt4VQwrWjpU
Authentication using JWT Token
User Registration by creating the jwt token using jsonwebtoken
URL example: http://localhost:3000/register
User Login using the registered details and creating jwt token
URL example: http://localhost:3000/login
Operations of todo Tasks with mongoDB Atlas and mongoose
Create a task with priority
URL example: http://localhost:3000/643681193b2b1d540f8558ff/createTodo
List the todo tasks according to priority and created date
await todoModel.find({ userId, userId })
.sort({ priority: 1, createdAt: -1 });
URL example: http://localhost:3000/643681193b2b1d540f8558ff/
Mark the todo tasks completed
await todoModel.updateOne({ _id: todoId, userId: userId },
{ $set: { status: "completed" } } );
Cancel the particular todo task
await todoModel.updateOne({ _id: todoId, userId: userId },
{ $set: { status: "cancelled" } } );
Delete a particular todo task
await todoModel.deleteOne({ _id: todoId });