Skip to content

alimurtadho/nodejs-jwt-auth-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Documentation

APIs that we need to provide:

method     url                  action
POST	     ||/api/auth/signup	 ||signup new account
POST	     ||/api/auth/signin	 ||login an account
GET	     ||/api/test/all	 ||retrieve public content
GET	     ||/api/test/user	 ||access User’s content
GET	     ||/api/test/admin	 ||access Admin’s content

project testing

signup / create user 1.signup test jwt 2.test-jwt access-token
3.access-token test user 4.test:user test role user 5.test:roleuser

Project setup

npm install

Then, edit app/config/db.config.js with correct DB credentials.

Run

node server.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published