A nodejs backend run application that can be used to create users and tasks for them as well. It uses MongoDB for the provision of database. The application uses express for providing the server. It is authenticated on the client side using JWT tokens so that a user cannot retrieve another user's details or another user's task details. It is hosted on heroku.
The project uses npm version 7.6.0 and Node.js v12.20.2.
Instructions to run and use the application are given below:
- Ensure you have postman installed.
- Open postman and create a new request.
- Create a
POST
request ->https://task-application-manager.herokuapp.com/users
- Select Body, then select raw and JSON.
Enter a sample login like
{
"name":"pranav",
"email":"pranav.agarw@gmail.com",
"password":"pranavagarwal"
}
- send it and a user will be created
In order to validate this, you will get an email from me!
- Open postman and create a new request.
- Create a
POST
request ->https://task-application-manager.herokuapp.com/login
- Select Body, then select raw and JSON.
Enter a sample login like
{
"email":"pranav.agarw@gmail.com",
"password":"pranavagarwal"
}
- send it and you will be logged in
- Open postman and create a new request.
- Create a
GET
request ->https://task-application-manager.herokuapp.com/users/me
- send it and you will see your login details.
- Open postman and create a new request.
- Create a
POST
request ->https://task-application-manager.herokuapp.com/users/logout
- send it and you will be logged out
- Open postman and create a new request.
- Create a
POST
request ->https://task-application-manager.herokuapp.com/tasks
- Select Body, then select raw and JSON.
Enter a sample task like
{
"description":"Finished learning backend?",
"completed":false
}
- send it and a new task will be created.
- Open postman and create a new request.
- Create a
GET
request ->https://task-application-manager.herokuapp.com/tasks
- send it and you will see your created tasks details.
- Open postman and create a new request.
- Create a
PATCH
request ->https://task-application-manager.herokuapp.com/users/me
- Select Body, then select raw and JSON.
Enter a sample update like
"name":"pranav agarwal"
}
- send it and the user will be updated.
- Open postman and create a new request.
- Create a
DELETE
request ->https://task-application-manager.herokuapp.com/users/me
- send it and the user will be deleted.
- update task
- delete task