Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clifftech123/spring-crud-docker
Spring Boot application that demonstrates CRUD
https://github.com/clifftech123/spring-crud-docker
docker docker-compose java java-jpa postgresql
Last synced: about 9 hours ago
JSON representation
Spring Boot application that demonstrates CRUD
- Host: GitHub
- URL: https://github.com/clifftech123/spring-crud-docker
- Owner: Clifftech123
- Created: 2024-02-25T10:16:14.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-03-08T04:56:44.000Z (8 months ago)
- Last Synced: 2024-03-08T05:36:47.736Z (8 months ago)
- Topics: docker, docker-compose, java, java-jpa, postgresql
- Language: Java
- Homepage:
- Size: 91.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Boot CRUD Application with JPA, Docker, and PostgreSQL
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.
## Prerequisites
- Java 17
- Maven 3.8.1
- Docker
- PostgreSQL## Installation
1. Clone the repository:
```bash
git clone
```
2. Navigate to the project directory:
```bash
cd spring-boot-crud-docker
```
3. Build the project:
```bash
mvn clean install
```
4. Run the application using Docker:
```bash
docker-compose up --build
```## Configuration
The application uses `application.properties` for configuration. You can customize the database connection details, server port, and other settings as needed.
## Features
- CRUD operations for entities
- Dockerized application for easy deployment
- PostgreSQL database integration## API Endpoints
- `GET http://localhost:8080/customers`: Retrieve all customers
- `POST http://localhost:8080/customers`: Create a new customer
- `GET http://localhost:8080/customers/{id}`: Retrieve a customer by ID
- `PUT http://localhost:8080/customers/{id}`: Update a customer by ID
- `DELETE http://localhost:8080/customers/{id}`: Delete a customer by ID## Contributing
Contributions are welcome! Please read the [contributing guidelines](CONTRIBUTING.md) before getting started.