JWT API Authentication with Express JS and MongoDB
REST API Authentication Express JS, MongoDB and JWT to generate Tokens
Read Written Complete Tutorial
https://techfickle.com/jwt-authentication-using-express-js-and-mongodb-for-your-rest-api/
Installation
Rename .env.example to .env
Specify your database credentials in .env
Run npm install inside project folder
node app
Or nodemon app -L
Express JS v4.17
NodeJS server side Framework
Mongoose ODM v5.6
Mongoose ODM v5.6
MongoDB Object Data Modeling
JWT
JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object
Sources
Express JS
https://expressjs.com/
Mongoose ODM v5.6
https://mongoosejs.com/
NPM JS
https://npmjs.com/
JWT Tokens
https://jwt.io
LICENCE
Copyright 2019 lanwilds Licenced to MIT licence