Skip to content

deepakacharya/JWT

Repository files navigation

A fully functional example project on how to use jsonwebtoken package within NodeJs...

prereqs:

  • Install Visual Studio Code
  • Install REST Client(Author: Huachao Mao) extension within VSCode
  • I used npm 16.5.0

Commands to Run:

1.> git clone https://github.com/deepakacharya/JWT.git
       (Clone this project)
2.> npm install
       (will create node_modules folder locally with all dependencies installed)
3.> npm run auth-server
       (exposed on port 3000)
4.> npm run data-sever
       (run from another Terminal, exposed on port 4000)
5. Then use requests.rest file to test endpoints (install extension REST Client to use .rest files)

Note: As an alternative to requests.rest you can use Postman app to test endpoints also.

About

usage of jsonwebtoken in node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published