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