Node | Express | MongoDB | Passport
Boilerplate Node Passport authenication with JWTs using passport-local and passport-jwt. I used node-jsonwebtoken by Auth0 for the tokens. Users are stored to MongoDB and passwords are encrypted using node-bcrypt.
This bolierplate includes basic:
- Sign Up route
- Login route
- Protected route
You need to create a keys.js file in the /config
mongoURI: 'mongodb://localhost:27017/DATABASE_NAME',
JwtSecret: '~corey*trevor~'