A scalable and production-ready E-Commerce backend application built using Spring Boot and SQL database.This repository handles core e-commerce functionalities such as Customers, Categories, Products, and Orders through RESTful APIs.
- Customer management
- Category management
- Product management
- Order creation and tracking
- SQL database integration
- RESTful API design
- Docker support
- Java 17
- Spring Boot
- Spring Web
- Spring Data JPA (Hibernate)
- SQL Database (MySQL / PostgreSQL)
- Maven
Controller ā Service ā Repository ā Database
- Controller: Handles HTTP requests
- Service: Business logic
- Repository: Database operations
- Model: Entity classes
e-com/demo
ā
āāā src/main/java/com/example/e-com
ā āāā controller
ā ā āāā CategoryController.java
ā ā āāā ProductController.java
ā ā āāā CustomerController.java
ā ā āāā OrderController.java
ā ā
ā āāā service
ā ā āāā CategoryService.java
ā ā āāā ProductService.java
ā ā āāā CustomerService.java
ā ā āāā OrderService.java
ā ā
ā āāā repository
ā ā āāā CategoryRepository.java
ā ā āāā ProductRepository.java
ā ā āāā CustomerRepository.java
ā ā āāā OrderRepository.java
ā ā
ā āāā model
ā ā āāā Category.java
ā ā āāā Product.java
ā ā āāā Customer.java
ā ā āāā Order.java
ā ā āāā OrderItem.java
ā ā
ā āāā EcommerceApplication.java
ā
āāā src/main/resources
ā āāā application.properties
ā
āāā Dockerfile
āāā docker-compose.yml
āāā pom.xml
āāā README.md
- customers
- categories
- products
- orders
- order_items
- One Category ā Many Products
- One Customer ā Many Orders
- One Order ā Many Order Items
GET /api/products
GET /api/orders
GET /api/category
GET /api/customers
- Backend can be deployed using Docker on Render / Railway / AWS
- Frontend can be hosted on GitHub Pages
- CORS configuration supported
- JWT Authentication
- Admin APIs
- Payment Gateway Integration
- Product Reviews and Ratings
- Inventory Management
Vatsal Varma
LinkedIn: https://www.linkedin.com/in/vatsal-varma-2bb681294/
Backend Developer | Spring Boot | SQL