Skip to content

Clifftech123/spring-crud-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:
    git clone <repository-url>
  2. Navigate to the project directory:
    cd  spring-boot-crud-docker
  3. Build the project:
    mvn clean install
  4. Run the application using Docker:
    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 before getting started.

About

Spring Boot application that demonstrates CRUD

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages