Welcome to the Clickbus API, a simple challenge project for Quero Ser Clickbus. This README provides you with essential information to get started. You can find the challenge details here
If you want to quickly test the API, make sure you have Docker and Docker Compose installed. Download the docker-compose.yml
file and run the following command:
docker compose up -d
Before you start, ensure you have the following prerequisites installed:
- Java 17
- Docker
- Postgres 16
To run the project, execute the following command: doc
./mvnw spring-boot:run
To build the project, run the following command:
./mvnw clean install
To deploy the Clickbus API, follow these steps:
-
Build the Docker image:
docker build -t clickbus-api .
-
Run the Docker Compose:
docker-compose up -d
The API uses Swagger to document its endpoints. To access the documentation, follow these steps:
-
Ensure the project is running.
-
Visit the Swagger UI by replacing
localhost
with your host and8080
with your port:http://localhost:8080/swagger-ui.html
This will provide you with detailed information about the API's endpoints, request/response examples, and more.
Alternatively, you can visit https://editor.swagger.io/ and paste the text from this file.
This project is licensed under the MIT License.