A full-stack e-commerce platform built with Spring Boot and React, featuring secure authentication, product management, shopping cart, and order processing.
ShopHive is a full-stack e-commerce application that enables users to browse products, manage shopping carts, and place orders through a secure and intuitive interface.
The backend is built using Spring Boot with JWT-based authentication, while the frontend is developed using React. The platform demonstrates scalable backend architecture, secure REST APIs, and efficient database design for modern e-commerce systems.
- User Registration & Login
- JWT Authentication
- Role-Based Access Control
- Secure Password Encryption
- Browse Products
- Product Categories
- Product Search
- Product Details
- Inventory Management
- Add/Remove Products
- Quantity Management
- Price Calculation
- Persistent Cart
- Place Orders
- Order History
- Order Tracking
- Order Status Management
- Manage Products
- Manage Categories
- View Orders
- Inventory Updates
React Frontend
│
▼
REST Controllers
│
▼
Spring Boot Services
│
┌──────────────┴──────────────┐
▼ ▼
Business Logic Authentication
│
▼
Spring Security + JWT
│
▼
Spring Data JPA
│
▼
MySQL
- Java
- Spring Boot
- Spring Security
- Spring Data JPA
- Hibernate
- React
- Vite
- Tailwind CSS
- MySQL
- JWT
- Maven
- Git
- Postman
- Registration
- Login
- JWT Token Generation
- Authorization
Responsible for
- Product CRUD
- Category Management
- Search
- Inventory
Supports
- Add Item
- Remove Item
- Update Quantity
- Cart Total Calculation
Handles
- Checkout
- Order Placement
- Order History
- Status Updates
Main entities
- User
- Product
- Category
- Cart
- CartItem
- Order
- OrderItem
The schema is normalized to ensure efficient data storage and maintain referential integrity.
POST /api/auth/register
POST /api/auth/login
GET /api/products
GET /api/products/{id}
POST /api/products
PUT /api/products/{id}
DELETE /api/products/{id}
GET /api/cart
POST /api/cart/items
PUT /api/cart/items/{id}
DELETE /api/cart/items/{id}
POST /api/orders
GET /api/orders
GET /api/orders/{id}
- JWT-secured REST APIs
- Normalized relational database design
- Modular service-oriented architecture
- Efficient order and inventory management
- Responsive React frontend
- Payment Gateway Integration
- Wishlist
- Product Reviews
- Email Notifications
- Redis Caching
- Elasticsearch
- Docker
- Kubernetes Deployment
- Recommendation Engine
Clone the repository
git clone https://github.com/AryanGupta833/ShopHive.gitNavigate to the project
cd ShopHiveBackend
mvn spring-boot:runFrontend
npm install
npm run devShopHive aims to evolve into a production-ready e-commerce platform with scalable microservices, cloud deployment, advanced search capabilities, and AI-powered product recommendations.
Aryan Gupta