A basic node.js API for token based authentication management using jwt.
create .env at root level with below params
# development or production or testing
NODE_ENV=development
# mongodb connection url
MONGO_URL=
# jwt access-token key
ACCESS_TOKEN_KEY=
# jwt refresh token key
REFRESH_TOKEN_KEY=
Start the server and negivate to /api-docs to access swagger docs
Make sure you have installed docker and docker-compose before following below commands
git clone https://github.com/shiven1703/Node-auth-API.git
docker-compose up --build
visit : http://localhost:4000/api-docs/
Ctr + c
OR
docker-compose down
docker-compose up -d