This is a Spring Boot application for an e-commerce platform.
This project is a simple e-commerce application built with Spring Boot. It provides RESTful APIs for managing categories.
- Spring Boot Starter Web
- Spring Boot Starter Data JPA
- Lombok
- ModelMapper
- H2 Database
- Spring Boot Starter Validation
- Java 17
- Maven
- Clone the repository:
git clone https://github.com/your-username/sb_project.git
- Navigate to the project directory:
cd sb_project - Build the project:
mvn clean install
- Run the application:
mvn spring-boot:run
The application will be running on http://localhost:8080.
The following API endpoints are available:
GET /api/public/categories: Get all categoriesPOST /api/public/categories: Create a new categoryPUT /api/admin/categories/{categoryId}: Update a categoryDELETE /api/admin/categories/{categoryId}: Delete a category
This application uses the H2 in-memory database. The database console can be accessed at http://localhost:8080/h2-console.
Note: The database is reset every time the application is restarted.