Skip to content
Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

77 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›’ E-Commerce Website β€” Full-Stack Open Source Project

A modern, responsive, and feature-rich full-stack e-commerce platform built using Node.js, Express.js, MySQL, JWT, HTML, CSS, and Vanilla JavaScript.

This project includes:

  • User authentication system
  • Product browsing & filtering
  • Shopping cart & checkout flow
  • Wishlist system
  • Admin dashboard
  • Order management
  • Responsive modern UI
  • Open source contribution support

🌐 Live Demo

πŸš€ Live Website:
https://e-commerce-git-main-bhuvanshs-projects.vercel.app


πŸ“Œ Features

πŸ‘€ Authentication

  • User Signup & Login
  • JWT Authentication
  • Refresh Token System
  • Protected Routes
  • Admin Role Support

πŸ›οΈ Shopping Features

  • Product Listing
  • Product Detail Page
  • Search & Filtering
  • Category Filtering
  • Sorting System
  • Recently Viewed Products
  • Wishlist System
  • Cart Drawer
  • Full Cart Management

πŸ’³ Checkout & Orders

  • Checkout Validation
  • Order Placement
  • Order History
  • Address Management
  • Shipping Calculation
  • Tax Calculation

βš™οΈ Admin Features

  • Add Products
  • Edit Products
  • Delete Products
  • Dashboard Overview
  • User Management
  • Order Monitoring

🎨 UI/UX

  • Fully Responsive Design
  • Modern Product Cards
  • Toast Notifications
  • Ripple Effects
  • Smooth Animations
  • Mobile Navigation
  • Lazy Loaded Images

πŸ”’ Security Improvements

  • Helmet Security Middleware
  • Request Rate Limiting
  • Input Validation
  • JWT Authentication
  • Secure Cart & Checkout Flow
  • Backend Total Verification

πŸ› οΈ Tech Stack

Technology Usage
Node.js Backend Runtime
Express.js API Framework
MySQL Database
JWT Authentication
HTML5 Frontend Structure
CSS3 Styling
JavaScript Frontend Logic
Vercel Frontend Deployment

πŸ“‚ Updated Project Structure

E-commerce/
β”‚
β”œβ”€β”€ .github/
β”‚   β”œβ”€β”€ ISSUE_TEMPLATE/
β”‚   β”œβ”€β”€ workflows/
β”‚   └── hiero-bot.yml
β”‚
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ config/
β”‚   β”‚   └── db.js
β”‚   β”‚
β”‚   β”œβ”€β”€ controllers/
β”‚   β”‚   β”œβ”€β”€ authController.js
β”‚   β”‚   β”œβ”€β”€ orderController.js
β”‚   β”‚   └── productController.js
β”‚   β”‚
β”‚   β”œβ”€β”€ middleware/
β”‚   β”‚   β”œβ”€β”€ adminMiddleware.js
β”‚   β”‚   └── authMiddleware.js
β”‚   β”‚
β”‚   β”œβ”€β”€ models/
β”‚   β”‚   β”œβ”€β”€ Order.js
β”‚   β”‚   β”œβ”€β”€ Product.js
β”‚   β”‚   └── User.js
β”‚   β”‚
β”‚   β”œβ”€β”€ routes/
β”‚   β”‚   β”œβ”€β”€ authRoutes.js
β”‚   β”‚   β”œβ”€β”€ orderRoutes.js
β”‚   β”‚   └── productRoutes.js
β”‚   β”‚
β”‚   β”œβ”€β”€ services/
β”‚   β”‚   └── order.service.js
β”‚   β”‚
β”‚   β”œβ”€β”€ utils/
β”‚   β”‚
β”‚   β”œβ”€β”€ .env.example
β”‚   β”œβ”€β”€ package.json
β”‚   β”œβ”€β”€ package-lock.json
β”‚   β”œβ”€β”€ schema.sql
β”‚   └── server.js
β”‚
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ assets/
β”‚   β”‚
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ footer.html
β”‚   β”‚   └── navbar.html
β”‚   β”‚
β”‚   β”œβ”€β”€ scripts/
β”‚   β”‚   β”œβ”€β”€ about.js
β”‚   β”‚   β”œβ”€β”€ admin.js
β”‚   β”‚   β”œβ”€β”€ auth.js
β”‚   β”‚   β”œβ”€β”€ cart-drawer.js
β”‚   β”‚   β”œβ”€β”€ cart.js
β”‚   β”‚   β”œβ”€β”€ checkout.js
β”‚   β”‚   β”œβ”€β”€ components.js
β”‚   β”‚   β”œβ”€β”€ config.js
β”‚   β”‚   β”œβ”€β”€ dashboard.js
β”‚   β”‚   β”œβ”€β”€ hero.js
β”‚   β”‚   β”œβ”€β”€ home-init.js
β”‚   β”‚   β”œβ”€β”€ order.js
β”‚   β”‚   β”œβ”€β”€ ordersHistory.js
β”‚   β”‚   β”œβ”€β”€ product-actions-home.js
β”‚   β”‚   β”œβ”€β”€ product-actions.js
β”‚   β”‚   β”œβ”€β”€ product-cards-home.js
β”‚   β”‚   β”œβ”€β”€ product-render.js
β”‚   β”‚   β”œβ”€β”€ product-reviews.js
β”‚   β”‚   β”œβ”€β”€ product-variants.js
β”‚   β”‚   β”œβ”€β”€ product.js
β”‚   β”‚   β”œβ”€β”€ profile.js
β”‚   β”‚   β”œβ”€β”€ recentlyViewed.js
β”‚   β”‚   β”œβ”€β”€ related-products.js
β”‚   β”‚   β”œβ”€β”€ script.js
β”‚   β”‚   β”œβ”€β”€ shop-controls.js
β”‚   β”‚   β”œβ”€β”€ shop.js
β”‚   β”‚   β”œβ”€β”€ toast.js
β”‚   β”‚   β”œβ”€β”€ ui.js
β”‚   β”‚   β”œβ”€β”€ utils.js
β”‚   β”‚   └── wishlist.js
β”‚   β”‚
β”‚   β”œβ”€β”€ styles/
β”‚   β”‚   β”œβ”€β”€ admin.css
β”‚   β”‚   β”œβ”€β”€ auth.css
β”‚   β”‚   β”œβ”€β”€ base.css
β”‚   β”‚   β”œβ”€β”€ cart.css
β”‚   β”‚   β”œβ”€β”€ checkout.css
β”‚   β”‚   β”œβ”€β”€ components.css
β”‚   β”‚   β”œβ”€β”€ dashboard.css
β”‚   β”‚   β”œβ”€β”€ hero.css
β”‚   β”‚   β”œβ”€β”€ layout.css
β”‚   β”‚   β”œβ”€β”€ product-card.css
β”‚   β”‚   β”œβ”€β”€ product.css
β”‚   β”‚   β”œβ”€β”€ shop.css
β”‚   β”‚   └── style.css
β”‚   β”‚
β”‚   β”œβ”€β”€ about.html
β”‚   β”œβ”€β”€ admin.html
β”‚   β”œβ”€β”€ blog.html
β”‚   β”œβ”€β”€ cart.html
β”‚   β”œβ”€β”€ checkout.html
β”‚   β”œβ”€β”€ contact.html
β”‚   β”œβ”€β”€ dashboard.html
β”‚   β”œβ”€β”€ help.html
β”‚   β”œβ”€β”€ index.html
β”‚   β”œβ”€β”€ order.html
β”‚   β”œβ”€β”€ privacy.html
β”‚   β”œβ”€β”€ product.html
β”‚   β”œβ”€β”€ profile.html
β”‚   β”œβ”€β”€ shop.html
β”‚   β”œβ”€β”€ signin.html
β”‚   β”œβ”€β”€ signup.html
β”‚   β”œβ”€β”€ success.html
β”‚   β”œβ”€β”€ terms.html
β”‚   └── wishlist.html
β”‚
β”œβ”€β”€ public/
β”‚
β”œβ”€β”€ .env.example
β”œβ”€β”€ .gitignore
β”œβ”€β”€ CONTRIBUTING.md
β”œβ”€β”€ LICENSE
β”œβ”€β”€ package.json
β”œβ”€β”€ package-lock.json
└── README.md

πŸš€ Local Setup Guide

1️⃣ Clone Repository

git clone https://github.com/your-username/E-commerce.git

2️⃣ Open Project Folder

cd E-commerce

βš™οΈ Backend Setup

3️⃣ Open Backend Folder

cd backend

4️⃣ Install Dependencies

npm install

5️⃣ Create Environment File Create a .env file inside the backend/ folder using .env.example:

DB_HOST=localhost
DB_USER=root
DB_PASSWORD=your_password
DB_NAME=ecommerce
JWT_SECRET=your_secret_key
PORT=5000
FRONTEND_URL=http://127.0.0.1:5500

6️⃣ Import Database Schema

mysql -u root -p ecommerce < schema.sql

7️⃣ Start Backend Server

npm run dev

Backend will run at:

http://localhost:5000

🌐 Frontend Setup

8️⃣ Open Frontend Folder

Open the frontend/ folder in VS Code.

9️⃣ Run Frontend

Use Live Server extension or any local server. Example using VS Code Live Server:

  • Right click on index.html
  • Click Open with Live Server

Frontend will run at:

http://127.0.0.1:5500

🎯 Learning Goals

This project demonstrates:

  • Full-stack web development fundamentals
  • REST API development using Node.js & Express
  • MySQL database integration and query handling
  • JWT-based authentication & authorization
  • Frontend UI/UX design and responsive layouts
  • DOM manipulation and dynamic rendering
  • Cart, checkout, and order management systems
  • Admin dashboard development
  • Real-world e-commerce application architecture
  • API integration between frontend and backend
  • Open-source project structuring and collaboration
  • Debugging, validation, and error handling

πŸ‘¨β€πŸ’» Maintainers & Organization

This project is developed under the Anthropic Bots organization.

πŸ‘‘ Organization Owner

Mohit Yadav

  • Founder & Owner of Anthropic Bots
  • Passionate about Full-Stack Development & Software Engineering
  • Focused on building scalable real-world applications

πŸ› οΈ Project Maintainer

Bhuvansh Kataria

  • Active maintainer of this E-Commerce project
  • Responsible for feature development, backend integration, bug fixes, and open-source improvements
  • Contributing towards improving project structure, security, and overall user experience

πŸ’‘ This project is actively maintained and improved through open-source collaboration.

Contributions, suggestions, and improvements are always welcome.


πŸ“œ License

This project is licensed under the MIT License and is free to use for learning and educational purposes.


⭐ If you like this project, consider giving it a star on GitHub and supporting the repository!

About

A modern, responsive e-commerce platform built with clean UI, product browsing, and cart functionality, deployed using GitHub Pages.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages