Skip to content

Chrosea/auth-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Before start

This project is using MongoDB as database, please install before with https://www.mongodb.com/docs/v4.2/installation/ Furthermore, because invalidate jwt token is theoretically impossible, the workaround is to store a blacklist for jwt, this project chosen redis as solution, please install before start https://redis.io/docs/getting-started/installation/

After installation, both MongoDB and redis needs to start local service

To start

to start with, in tht root directory install all dependency

npm install

to start the service

npm run

to run test use

npm test