- Authentication Microservice
-
Go to
backend/setups
Folder -
Create an Environment File .env
-
In the file add the following variables and assign values to it (You can use the .env.example file)
- POSTGRES_ADMIN_USER
- POSTGRES_ADMIN_PASSWORD
- POSTGRES_DB
- POSTGRES_PORT (Keep it 5432)
- POSTGRES_HOST
- JWT_SECRET
- JWT_EXPIRY
- Run
./setup.sh
If unable to execute, give necessary executable permission. eg. chmod +x image-builder.sh
and eg. chmod +x setup.sh
- On Another Terminal run the following to setup database
./database-setup.sh <DATABASE NAME> <DB USER>
If unable to execute, give necessary executable permission. eg. chmod +x database-setup.sh
-
Now you can do
docker-compose down
and then usedocker-compose up
to stop and start -
Voila! 🎆 All's Setup