Skip to content

πŸ” A simple REST API with NodeJS, MongoDB and ExpressJS

License

Notifications You must be signed in to change notification settings

eu-diogo-ferreira/NodeJS-REST-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

License: MIT

NodeJS-REST-API

πŸ” A simple REST API with NodeJS, MongoDB and ExpressJS

Techlogies

This project was developed with NodeJS, ExpressJS, BcryptJS and JWT.

Install

$ git clone [email protected]:ArikBartzadok/NodeJS-REST-API.git
# Recommend you to delete `.git`
$ cd <<PROJECT_NAME>> && rm -r .git

Development

$ npm start
# or
$ nodemon src/index.js

Step by step

  • Create the server application with ExpressJS and Body-parser
  • Create the connection with MongoDB
  • Create the model of collection
  • Create the auth controller to register users in database
  • Create system to encrypt the password, and manually disable the return of password in the request
  • Create system to generate, authenticate and treat JWT
  • Reorganize the project's directory structure
  • Create module to recover password, including in the user model
  • Recovering passwords with mailtrap
  • Bug fixed in nodemailer and mailtrap <<< Error: Missing credentials for "PLAIN"
  • Create route to reset password and authenticate token
  • Bug fixed in decoded token
  • Create routes to 'POST, GET, PUT and DELETE' projects
  • Creating model relationships (Users, Pojects and Taks)

Author

Diogo Ferreira

License

This project is open source and available under the MIT License.

Support me

ko-fi

About

πŸ” A simple REST API with NodeJS, MongoDB and ExpressJS

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published