Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rampa2510/node-jwt-auth-template
A nodje, jwt and mongodb authorization template
https://github.com/rampa2510/node-jwt-auth-template
Last synced: about 6 hours ago
JSON representation
A nodje, jwt and mongodb authorization template
- Host: GitHub
- URL: https://github.com/rampa2510/node-jwt-auth-template
- Owner: rampa2510
- Created: 2020-01-01T09:25:05.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-22T13:39:28.000Z (almost 2 years ago)
- Last Synced: 2023-03-07T15:49:47.809Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 544 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A template for nodejs, jwt and mongoDB authentication
## Details
- I have used the collection name as users for storing data.
- The model used for registration and login can be found in Models directory
- The controllers consit of files which hae the buissness logic
- The route.js file consists of all the route configuration
- For production environement it will run with pm2 for development it will use nodemonAdd the following details in the .env.devlopment or .env.production file
DB_URI
DB_NAME
JWT_SECRET
JWT_EXPIRY