Skip to content

yashh152004/Backend_eco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›’ E-Commerce Backend API – Spring Boot This is a robust and modular backend API for an E-Commerce platform developed using Spring Boot. It handles core functionalities such as product management, user authentication, order processing, and more. Designed with scalability and clean architecture in mind, it serves as the backbone for any modern e-commerce application.

βœ… Features

πŸ“¦ Product Management (CRUD for items)

πŸ›οΈ Cart & Wishlist functionality

🧾 Order Placement and tracking

πŸ’³ Payment Integration Ready (structure in place)

πŸ” Role-based access (Admin / User)

πŸ› οΈ Tech Stack Technology Role Java 17+ Core backend language Spring Boot Framework for building the REST API Spring Security Authentication and Authorization MySQL Relational database Hibernate/JPA ORM for database interaction Maven Dependency management Postman API testing

πŸ“ Project Structure bash Copy Edit src/ β”œβ”€β”€ controller # REST controllers β”œβ”€β”€ service # Business logic β”œβ”€β”€ repository # JPA repositories β”œβ”€β”€ model # Entity classes β”œβ”€β”€ config # Security and configuration └── dto # Data transfer objects πŸš€ How to Run Clone the repo

bash Copy Edit git clone https://github.com/yashh152004/Backend_eco.git Configure MySQL Database

Update your application.properties:

ini Copy Edit spring.datasource.url=jdbc:mysql://localhost:3306/ecommerce_db spring.datasource.username=your_username spring.datasource.password=your_password Run the application

Using IDE: Run EcommerceApplication.java

Or using terminal:

bash Copy Edit mvn spring-boot:run πŸ“¬ API Endpoints Overview Method Endpoint Description POST /api/auth/register Register a new user POST /api/auth/login Login and get JWT token GET /api/products Get all products POST /api/products Add a product (Admin only) POST /api/cart Add item to cart POST /api/orders Place an order ... More endpoints in code

πŸ“¦ Future Enhancements 🧾 Invoice generation

πŸ”Ž Product search & filtering

πŸ“§ Email notifications

🧠 Product recommendations (AI/ML)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages