Skip to content

DarshanKumarGP/ShopEdge-ecommerce-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cat > README.md << 'EOF'

ShopEdge E-Commerce Platform

A full-stack e-commerce application built with React (TypeScript) and Spring Boot.

📦 Tech Stack

Frontend

  • React 18 with TypeScript
  • React Router for navigation
  • Material-UI (MUI) components
  • Framer Motion animations
  • React Hook Form + Yup validation
  • Axios for API communication
  • CSS Modules for styling

Backend

  • Spring Boot 3.x
  • Spring Security with JWT authentication
  • Spring Data JPA
  • MySQL Database
  • RESTful API architecture
  • Role-based access control (User/Admin)
  • Hibernate ORM

✨ Features

  • 🛍️ Product browsing and search functionality
  • 🛒 Shopping cart management
  • 👤 User authentication & authorization
  • 📦 Order management system
  • 💳 Secure checkout process
  • 🔐 Admin dashboard with analytics
  • 📊 Product management (CRUD operations)
  • 👥 User management for admins
  • 📈 Sales analytics and reporting
  • ❤️ Wishlist functionality
  • 🔍 Advanced product filtering

📂 Project Structure

shopedge-ecommerce-platform/ ├── shopedge-backend/ # Spring Boot backend │ ├── src/ │ │ ├── main/ │ │ │ ├── java/ │ │ │ └── resources/ │ │ └── test/ │ ├── pom.xml │ └── README.md │ ├── shopedge-frontend/ # React TypeScript frontend │ ├── public/ │ ├── src/ │ │ ├── components/ │ │ ├── pages/ │ │ ├── hooks/ │ │ ├── services/ │ │ ├── utils/ │ │ └── styles/ │ ├── package.json │ └── README.md │ ├── .gitignore ├── LICENSE └── README.md

🚀 Getting Started

Prerequisites

  • Java 17+ (for backend)
  • Node.js 16+ and npm (for frontend)
  • MySQL 8.0+ (for database)
  • Maven 3.6+ (for backend build)

Backend Setup

cd shopedge-backend

Configure database in src/main/resources/application.properties spring.datasource.url=jdbc:mysql://localhost:3306/shopedge spring.datasource.username=your_username spring.datasource.password=your_password Run the application ./mvnw spring-boot:run

Backend will run on http://localhost:8080

Frontend Setup

cd shopedge-frontend

Install dependencies npm install

Start development server npm start

Frontend will run on http://localhost:3000

🔑 API Endpoints

Authentication

  • POST /api/auth/register - User registration
  • POST /api/auth/login - User login
  • POST /api/auth/logout - User logout

Products

  • GET /api/products - Get all products
  • GET /api/products/{id} - Get product by ID
  • POST /api/products - Create product (Admin)
  • PUT /api/products/{id} - Update product (Admin)
  • DELETE /api/products/{id} - Delete product (Admin)

Cart

  • GET /api/cart - Get user cart
  • POST /api/cart/add - Add item to cart
  • PUT /api/cart/update - Update cart item
  • DELETE /api/cart/remove/{id} - Remove item from cart

Orders

  • GET /api/orders - Get user orders
  • GET /api/orders/{id} - Get order details
  • POST /api/orders/create - Create new order
  • PUT /api/orders/{id}/status - Update order status (Admin)

Admin

  • GET /api/admin/dashboard - Get dashboard statistics
  • GET /api/admin/users - Get all users
  • PUT /api/admin/users/{id}/role - Update user role

🗄️ Database Schema

The application uses MySQL with the following main entities:

  • Users
  • Products
  • Categories
  • Cart Items
  • Orders
  • Order Items

🔒 Security

  • JWT-based authentication
  • BCrypt password encryption
  • Role-based access control (ROLE_USER, ROLE_ADMIN)
  • CORS configuration for frontend-backend communication
  • Protected API endpoints

👨‍💻 Author

Your Name

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Spring Boot framework
  • React community
  • Material-UI components
  • All open-source contributors EOF

About

Full-stack e-commerce platform with React TypeScript frontend and Spring Boot backend. Features: product management, shopping cart, user authentication, admin dashboard, and order processing system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors