This project is a Spring Boot application that manages beers and customers. It includes RESTful APIs for CRUD operations on beers and customers, database migrations using Flyway, and containerization using Docker.
To run unit and integration tests, use the following command: ./gradlew test
You can test the application by accessing the following URL:
[https://spring6-web-app.onrender.com]
This URL provides access to the deployed version of the Spring Boot application, where you can perform CRUD operations on beers and customers through the provided RESTful APIs.
GET /api/v1/beer
- List all beersGET /api/v1/beer/{beerId}
- Get beer by IDPOST /api/v1/beer
- Create a new beerPUT /api/v1/beer/{beerId}
- Update beer by IDDELETE /api/v1/beer/{beerId}
- Delete beer by IDPATCH /api/v1/beer/{beerId}
- Patch beer by IDGET /api/v1/customer
- List all customersGET /api/v1/customer/{customerId}
- Get customer by IDPOST /api/v1/customer
- Create a new customerPUT /api/v1/customer/{customerId}
- Update customer by IDDELETE /api/v1/customer/{customerId}
- Delete customer by IDPATCH /api/v1/customer/{customerId}
- Patch customer by ID
The application uses MySQL as the database. The database schema is managed using Flyway migrations.
To build the Docker image, run: docker build -t spring6-web-app .
To run the Docker container, use: docker run -p 8080:8080 spring6-web-app
This project is licensed under the MIT License. See the LICENSE
file for details.
For any inquiries or support, please contact uppnrise.