Rest API in node js with JWT
In this chapter, we will learn how to build REST API in node js with JWT. We are using the technology node js, MongoDB and express framework and we are using the JWT(JSON Web Token) for authentication.
You can find the complete source code in the GitHub source code for REST API in node js with JWT.
How to run the source code:
- Clone the git source for REST API in node js with JWT
- Checkout to the branch rest-api-in-nodejs-with-jwt
- Run npm i
- Run npm start
Go to the URL: http://localhost:3000/
You should see the below output