https://github.com/eu-diogo-ferreira/nodejs-rest-api
🔐 A simple REST API with NodeJS, MongoDB and ExpressJS
https://github.com/eu-diogo-ferreira/nodejs-rest-api
bcryptjs express-js jwt mongodb nodejs
Last synced: 2 months ago
JSON representation
🔐 A simple REST API with NodeJS, MongoDB and ExpressJS
- Host: GitHub
- URL: https://github.com/eu-diogo-ferreira/nodejs-rest-api
- Owner: eu-diogo-ferreira
- License: mit
- Created: 2021-03-09T02:58:33.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-11T04:01:38.000Z (over 5 years ago)
- Last Synced: 2025-10-24T09:47:44.929Z (8 months ago)
- Topics: bcryptjs, express-js, jwt, mongodb, nodejs
- Language: JavaScript
- Homepage:
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://opensource.org/licenses/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 git@github.com:ArikBartzadok/NodeJS-REST-API.git
# Recommend you to delete `.git`
$ cd <> && 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](https://diogodeveloper.netlify.app/)
## License
This project is open source and available under the [MIT License](LICENSE).
# Support me
[](https://ko-fi.com/C0C81IJH6)