Basic Node.js server that issues JSON Web Tokens (JWT) and validates them before granting access to a protected route. This app has NO front end - a tool like Postman is needed to use the app.
- Node.js v4.0+ (app uses ES6)
- Download Repo
- cd into project directory and
npm install
npm start
- Open Postman and tool around with app
- POST /authenticate: route to send username/password to and receive token
- GET /protected: route that requires a valid JWT to respond with data