Skip to content

Performing REST API Operations like GET/POST/PATCH/DELETE to manipulate data in MongoDb Database(by performing CRUD Operations) using Nodejs, Express FrameWork.

Notifications You must be signed in to change notification settings

Vv-Naveen-varma/task-manager-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task-manager-app

Performing REST API Operations like GET/POST/PATCH/DELETE to play around with the data in MongoDb Database(by performing CRUD Operations) using Nodejs, Express FrameWork.

Operations or Features:

  • ADD/UPDATE/DELETE for tasks and user account
  • UPLOAD a profile pic and UPDATE other user details using "multer" (npm module)
  • Password security by hashing using "bycrypt" (npm module)
  • Sending Emails using "nodemailer" (npm module)
  • Token generation for user friendly login using "Jsonwebtoken" (npm module)

src Directory layout

.
├── db
├── emails
├── middleware
├── models
├── routers
├── index.js

General notes For better understanding

NoSql Database models for 'User' and 'Task' are cereted in 'models directory' with a Relation-"if a user is removed then all tasks associated with that user must also be removed"

mongoose-npm module is used to connect to the MongoDb database in the 'db directory'

To route each request from a user Two routers are created ( One for Task and the other for User ) in the 'routers directory'. This is where each request is received and respective action is perfromed for all the CRUD operations on the MongoDb database

server is initialized to listen user requests in the 'index.js file'

npm modules used in this project:

  • "bycrypt" to encrypt and decrypt user password
  • "nodemailer" to sendEmails
  • "jsonwebtoken" to generate a token for each login
  • "mongodb" and "mongoose" for database
  • "multer" for customizing the profile pic features
  • Last but not least :) "express" module for routing and http requests

POSTMAN API

Implementation of this project is published in postman. You can checkout my postman Documentation (which is Updated frequently) for more details regarding the implementation of the HTTP-Requests at https://documenter.getpostman.com/view/15945431/TzXwEdb9

About

Performing REST API Operations like GET/POST/PATCH/DELETE to manipulate data in MongoDb Database(by performing CRUD Operations) using Nodejs, Express FrameWork.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published