- Prerequisites
- Installation
- Running the Application
- Running the tests
- Swagger Documentation
- Docker Commands
Before starting, make sure that the following tools and software are installed on your local machine:
-
Docker: Download Docker
-
Maven: Download Maven
Download the source code from the repository
- To run the application, make sure you have docker installed and running on your local machine
- Open a terminal and navigate to the root directory of the project
- Run the following command to build and run the docker containers:
docker-compose up --build
This should start the application, if using docker desktop, you can check the status of the containers by clicking on the docker icon in the taskbar and selecting the containers tab.
To run the tests for the application, make sure the test-db image is running in your docker container.
You will also need to have maven installed on your local machine and added to your path.
Open a terminal and navigate to the root directory of the project, from here you can type the command: mvn test -Plocal-tests
To get an overview of the API endpoints, you can use the swagger documentation.
To access this, make sure the application is running and open a browser and navigate to http://localhost:8080/swagger-ui/index.html
Here is a list of commands you can use in docker to manage the containers. These commands should be run from the root directory of the project.
docker-compose up --build
docker-compose up
docker-compose down
docker-compose stop