This repository serves the Authentication microservice for the Soora Spaced Repetition Test.
git clone https://github.com/abulhuman/soora-sr-auth-svc.git
npm install
cp .env.example .env
Then, open the .env
file and set the environment variables.
# .env
DATABASE_URL= # Your MongoDB connection string (separate db for this microservice)
JWT_SECRET= # Your JWT secret
JWT_EXPIRES_IN= # Your JWT expiration time (e.g. 7d)
npm run dev
Go to the Gateway Service and follow the instructions there to start the gateway service.