Skip to content

vatsalvarma/E-commerce-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

🛒 E-Commerce Backend

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.

Screenshot 2026-01-21 184430
Screenshot 2026-01-22 234522

📌 Features

  • Customer management
  • Category management
  • Product management
  • Order creation and tracking
  • SQL database integration
  • RESTful API design
  • Docker support

🧰 Tech Stack

  • Java 17
  • Spring Boot
  • Spring Web
  • Spring Data JPA (Hibernate)
  • SQL Database (MySQL / PostgreSQL)
  • Maven

🏗 Application Architecture


Controller → Service → Repository → Database

  • Controller: Handles HTTP requests
  • Service: Business logic
  • Repository: Database operations
  • Model: Entity classes

📁 Project Structure

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


🗄 Database Schema

Tables

  • customers
  • categories
  • products
  • orders
  • order_items

Relationships

  • One Category → Many Products
  • One Customer → Many Orders
  • One Order → Many Order Items

🔗 API Endpoints

Category APIs

GET /api/products
GET /api/orders
GET /api/category
GET /api/customers


🌐 Deployment

  • Backend can be deployed using Docker on Render / Railway / AWS
  • Frontend can be hosted on GitHub Pages
  • CORS configuration supported

🚀 Future Enhancements

  • JWT Authentication
  • Admin APIs
  • Payment Gateway Integration
  • Product Reviews and Ratings
  • Inventory Management

👨‍💻 Author

Vatsal Varma
LinkedIn: https://www.linkedin.com/in/vatsal-varma-2bb681294/
Backend Developer | Spring Boot | SQL

About

E-Commerce Backend A production-ready(Scalable) backend application built using Spring Boot and SQL database. This backend manages Customers, Categories, Products, and Orders with RESTful APIs and SQL database clean architecture.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages