SaFi Bank Space : SaFi Running services in local machine

Prerequisites:

  • Docker Desktop

  • Java 17 SDK

  • Gradle

  • IntelliJ (optional)

  • Git

Running services

  1. Checkout code from repository

  2. Make sure that Docker Desktop is running

  3. Go to the service you want to run, read through README.md and set environments

  4. Open terminal from that folder and run the docker-compose.yaml file: docker-compose up -d

  5. Make sure that all the containers in the file are up and running. If there are some containers that stopped for some reason, rerun the docker command.

  6. Start the service: ./gradlew run

You may need to setup the environment variables for some services to use local specific configurations: MICRONAUT_ENVIRONMENTS=local

Not all services have a docker-compose file. If the service does not have it, you can just check the dependencies it has, and then run those as docker containers. Generally, the only dependencies that a service needs to run are the database and the Kafka topics.