Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.