This project is a Customer Management API developed using Java Spring Boot. It allows users to create and manage customer information, including first name, last name, and date of birth. The application follows RESTful principles and utilizes an H2 in-memory database for data storage.
- Create and retrieve customer information.
- Input validation to ensure data integrity.
- Error handling with clear messages.
- A user-friendly interface built with Thymeleaf and Bootstrap.
- View a list of all customers.
- Java 17: The programming language used for backend development.
- Spring Boot: Framework used to build the REST API.
- H2 Database: In-memory database for data storage during development.
- Thymeleaf: Server-side Java template engine for rendering web pages.
- Bootstrap: Frontend framework for responsive design.
GET /customers: Show the customer creation form.GET /customers/list: Show the list of all customers.
POST /api/customers: Create a new customer.GET /api/customers: Retrieve a list of all customers.
- JDK 17 or later
- Gradle
- Clone the repository:
git clone https://github.com/sukhminderarora/customer-management.git
- Import the project using build.gradle.
- Run the Spring Boot Application - Open a web browser and go to the following URL to access the customer management interface:
http://localhost:8080/customers
- The Rest endpoints will also be available.