Skip to content

A demonstration of using Json web tokens for authorization in nodeJS.

Notifications You must be signed in to change notification settings

Mubi417/JWT-Auth-demonstration-with-nodeJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JWT-Auth-demonstration-with-nodeJS

A demonstration of using Json web tokens for authorization in nodeJS.

To run this locally, kindly proceed to clone or download.

In the main repo directory, open the command line and rum npm install (you must have node installed) to download all required modules.

After that, run node server.js or if you have nodemon installed, you could run nodemon server.js.

Then you could test the running API with the frontend included in the /frontend folder or you could use REST API clients such as insomnia or postman to test the running API.

The api would be running by default on port 3000 on localhost so the url would be http://localhost:3000/api_endpoint.

The endpoints here are /login and /getstuff.



Examine the code, run and experiment as you like!!!.

About

A demonstration of using Json web tokens for authorization in nodeJS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages