This is a simple Spring Boot application that demonstrates CRUD (Create, Read, Update, Delete) operations using JPA (Java Persistence API) for database interaction, Docker for containerization, and PostgreSQL as the database.
- Java 17
- Maven 3.8.1
- Docker
- PostgreSQL
- Clone the repository:
git clone <repository-url>
- Navigate to the project directory:
cd spring-boot-crud-docker
- Build the project:
mvn clean install
- Run the application using Docker:
docker-compose up --build
The application uses application.properties
for configuration. You can customize the database connection details, server port, and other settings as needed.
- CRUD operations for entities
- Dockerized application for easy deployment
- PostgreSQL database integration
GET http://localhost:8080/customers
: Retrieve all customersPOST http://localhost:8080/customers
: Create a new customerGET http://localhost:8080/customers/{id}
: Retrieve a customer by IDPUT http://localhost:8080/customers/{id}
: Update a customer by IDDELETE http://localhost:8080/customers/{id}
: Delete a customer by ID
Contributions are welcome! Please read the contributing guidelines before getting started.