This project provides an API for managing transactions.
To build the Docker image for the API, run the following command:
$ ./gradlew bootBuildImage
This command will create a Docker image for the API, which includes the application code, its dependencies, and a JRE.
To run the API, you can use Docker Compose. Docker Compose allows you to define and run multi-container Docker applications.
Before running Docker Compose, make sure that you have built the Docker image for the API using the ./gradlew bootBuildImage command.
To start the API, run the following command:
docker-compose up -d
This command will start the API in the background, and you should be able to access it on http://localhost:8080.
The API provides the following endpoints:
--
For more information on how to use these endpoints, please refer to the API documentation.
--
The API can be configured using environment variables. The following environment variables are supported:
DB_PORT : The port to use for the database . Defaults to 5432
DB_USER: The username to use when connecting to the database. Defaults to eai.
DB_PASS: The password to use when connecting to the database. Defaults to 'secret'.
You can set these environment variables when running the API using Docker Compose. For example, to set the DATABASE_URL environment variable, you can add the following line to a db.env
file
DB_PORT=8088
This project is licensed under the MIT License. See the LICENSE file for details.