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.git
cd auth-service-fr-edition
npm install
Create .env
file from .env.sample
then fill in the environment variables with the appropriate values.
cp .env.sample .env
Run the following two commands to generate the private and public keys:
openssl genrsa -out keys/private.pem 2048
openssl rsa -in keys/private.pem -outform PEM -pubout -out keys/public.pem
You can start the server running dev
script from package.json:
npm run dev
Or using docker
:
docker compose up
As 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)