https://github.com/kumarankit263/backend_shopease
The Ecomm Backend is a robust RESTful API server built with Spring Boot that powers the e-commerce application. It manages core functionalities like user authentication, product management, order processing, reviews, and more
https://github.com/kumarankit263/backend_shopease
jpa-hibernate mysql-database rest-api spring spring-boot spring-security
Last synced: 2 months ago
JSON representation
The Ecomm Backend is a robust RESTful API server built with Spring Boot that powers the e-commerce application. It manages core functionalities like user authentication, product management, order processing, reviews, and more
- Host: GitHub
- URL: https://github.com/kumarankit263/backend_shopease
- Owner: kumarankit263
- Created: 2025-06-13T10:59:20.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-19T08:05:09.000Z (about 1 year ago)
- Last Synced: 2025-06-19T09:20:00.220Z (about 1 year ago)
- Topics: jpa-hibernate, mysql-database, rest-api, spring, spring-boot, spring-security
- Language: Java
- Homepage:
- Size: 48.8 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐ E-Commerce App
A **full-stack e-commerce application** built with **Spring Boot (backend)** and **React.js (frontend)**.
This app supports user registration, secure JWT-based login, product management, cart functionality, order placement, admin dashboard, and more.
---
## ๐ Features
### ๐ค Authentication
- ๐ JWT-based login for **User** and **Admin**
- ๐ Role-based access control (`USER`, `ADMIN`)
- ๐ Protected and secure API routes
### ๐๏ธ Product Management
- โ Add / โ๏ธ Update / โ Delete products (**Admin only**)
- ๐ Search & filter by **category** or **product name**
- ๐ผ๏ธ Product image, description, and price display
### ๐ Cart
- โ Add, โ Remove, and ๐ Update product quantity
- ๐ต View total price of products in cart
### ๐ฆ Order Management
- ๐งพ Place order from cart
- ๐๏ธ View **order history** (User)
- ๐๏ธ Admin can delete **any user's** order
### ๐ Reviews
- โ๏ธ Add, ๐ Update, โ Delete product reviews
- ๐ View all reviews of a product
### ๐ซ Address Book
- ๐ Add / Update / Delete multiple addresses
- ๐ Use address while placing an order
---
## โ๏ธ Tech Stack
### ๐ง Backend
- ๐ป Spring Boot
- ๐ Spring Security + JWT
- ๐๏ธ JPA (Hibernate)
- ๐ข๏ธ MySQL or H2 (for testing)
### ๐ Frontend
- โ๏ธ React.js (with Vite)
- ๐ Axios (for API calls)
- ๐งญ React Router DOM
---
## ๐ Project Structure
### ๐ฆ Backend (`Spring Boot`)
๐ Project Structure (Backend)
- `src/`
- `controller/` โ REST Controllers
- `model/` โ JPA Entities
- `repository/` โ JPA Repositories
- `service/` โ Business Logic
- `security/` โ JWT Filters and Configuration
- `main/` โ Application Entry Point
---
## ๐ ๏ธ Setup Instructions
### ๐ Backend Setup
```bash
# 1. Clone the repo
git clone https://github.com/your-username/ecommerce-app.git
cd ecommerce-app/backend
# 2. Configure application.properties
# Set DB config, JWT secret, and other properties
# 3. Run Spring Boot app
./mvnw spring-boot:run
# Server Port
server.port=8080
# Database Configuration
spring.datasource.url=jdbc:mysql://localhost:3306/Ecomdb
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=root # Replace with your MySQL username
spring.datasource.password=root # Replace with your MySQL password