Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 887 Bytes

README.md

File metadata and controls

44 lines (28 loc) · 887 Bytes

Authentication Microservice for Soora Spaced Repetition Test

This repository serves the Authentication microservice for the Soora Spaced Repetition Test.

Instructions

1. Clone the repository

git clone https://github.com/abulhuman/soora-sr-auth-svc.git

2. Install dependencies

npm install

3. Set up the environment variables

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)

4. Run the service

npm run dev

4. Start the Gateway Service

Go to the Gateway Service and follow the instructions there to start the gateway service.