This microservice provides authentication functionality for ResiTech Pro.
To install and run the authentication microservice locally, follow these steps:
git clone git@github.com:ResitechPro/auth-service-fr-edition.gitcd auth-service-fr-edition
npm installCreate .env file from .env.sample then fill in the environment variables with the appropriate values.
cp .env.sample .envRun the following two commands to generate the private and public keys:
openssl genrsa -out keys/private.pem 2048openssl rsa -in keys/private.pem -outform PEM -pubout -out keys/public.pemYou can start the server running dev script from package.json:
npm run devOr using docker:
docker compose upAs you will notice from the logs when you start the server, the documentation is available at http://localhost:3001/api/docs.
- Node.js
- Express.js
- MongoDB
- Mongoose
- JSON Web Tokens (JWT)