https://github.com/edocbuhtig/secure-rest-api-jwt
Secure REST API using JWT with MongoDB Atlas Cloud database example and Nodejs Express framework.
https://github.com/edocbuhtig/secure-rest-api-jwt
jwt jwt-authentication jwt-authentication-flow mongodb nodejs rest-api
Last synced: about 2 months ago
JSON representation
Secure REST API using JWT with MongoDB Atlas Cloud database example and Nodejs Express framework.
- Host: GitHub
- URL: https://github.com/edocbuhtig/secure-rest-api-jwt
- Owner: edocbuhtig
- Created: 2020-06-12T13:11:43.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-07-21T12:15:09.000Z (11 months ago)
- Last Synced: 2025-07-21T14:16:01.972Z (11 months ago)
- Topics: jwt, jwt-authentication, jwt-authentication-flow, mongodb, nodejs, rest-api
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Secure REST API using JWT with MongoDB Atlas Cloud database example and Nodejs Express framework.
- Clone and run `npm install`
- Run main.js & server.js in alternate (Terminals)
/ CMD on windows
- IMP: Never share or publish private.key to rest of the world, replace mine with your to test, which is just a development placeholder.
- [Free RSA Key Tool](https://emn178.github.io/online-tools/rsa/key-generator/)
- There are many online free tools available, if you do not want to manullay wtite nodejs crypto script like [This ](https://stackoverflow.com/questions/8520973/how-to-create-a-pair-private-public-keys-using-node-js-crypto)
- For (main.js) Use the Recent mongoDB Atlas nodejs Driver's Connection String as, Starting 2025, your Atlas cluster's password, if contains any Special characters, will be auto URL encoded. Resulting into a connection error. Not covered in the Video Tutorial.
[Watch Video Tutorial](https://youtu.be/bgPRDiJhWa8)