Skip to content

A simple challenge project for Quero Ser Clickbus.

License

Notifications You must be signed in to change notification settings

jnariai/clickbus-api

Repository files navigation

Clickbus API

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

Table of Contents

Quick deploy

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

Developing

Prerequisites

Before you start, ensure you have the following prerequisites installed:

  • Java 17
  • Docker
  • Postgres 16

Running the Project

To run the project, execute the following command: doc

./mvnw spring-boot:run

Build

To build the project, run the following command:

./mvnw clean install

Deployment

To deploy the Clickbus API, follow these steps:

  1. Build the Docker image:

    docker build -t clickbus-api .
  2. Run the Docker Compose:

    docker-compose up -d

API Documentation

The API uses Swagger to document its endpoints. To access the documentation, follow these steps:

  1. Ensure the project is running.

  2. Visit the Swagger UI by replacing localhost with your host and 8080 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.

License

This project is licensed under the MIT License.

About

A simple challenge project for Quero Ser Clickbus.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published