NodeJWT Nodejs RestAPI and JWT Initialize a new Nodejs project with express boiler plate code npm install -g express-generator npx express-generator It will create a skelton code structure to start with. Main code for JWT is written in routes/users.js