Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 1.69 KB

README.md

File metadata and controls

60 lines (42 loc) · 1.69 KB

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