Simple Rest Api authentication using NodeJS, Express & jsonwebtoken Run on POSTMAN or Browser URL: http://localhost:3200
Application Requirements
Node.js NPM Installing packages Run the command below to install the dependencies:
npm install
nodemon app.js
Call Api using POSTMAN
-
Login http://localhost:3200/api/login (Mocked user login)
-
Not authorized http://localhost:3200/api
-
Authorized url http://localhost:3200/api/create