Skip to content

A professional full-stack e-commerce platform with stunning animations, real-time inventory management, advanced admin panel, and local database integration. Features product management, order processing, payment integration, and secure authentication.

License

Notifications You must be signed in to change notification settings

DHANUSHGCODE/EcommerceHub-Pro

Repository files navigation

EcommerceHub-Pro

License: MIT GitHub stars GitHub issues

A professional full-stack e-commerce platform with stunning animations, real-time inventory management, advanced admin panel, and local database integration. Features product management, order processing, payment integration, and secure authentication.

🌟 Features

Customer Features

  • βœ… Professional Animated UI - Modern, responsive design with smooth animations
  • βœ… Product Browsing - Browse, search, and filter products efficiently
  • βœ… Shopping Cart - Add/remove items with persistent storage
  • βœ… Checkout System - Secure order placement
  • βœ… User Accounts - Register, login, and manage profile
  • βœ… Order Tracking - Track order status in real-time
  • βœ… Product Reviews - Leave ratings and reviews
  • βœ… Wishlist - Save favorite products

Admin Features

  • βœ… Dashboard - Key metrics and analytics at a glance
  • βœ… Product Management - Create, edit, delete products
  • βœ… Order Management - Track and manage orders
  • βœ… Customer Management - View and manage customers
  • βœ… Inventory Tracking - Monitor stock levels
  • βœ… Sales Analytics - Revenue and sales reports
  • βœ… User Roles - Role-based access control

πŸš€ Quick Start

Localhost URLs

Store:  http://localhost:3000
Admin:  http://localhost:3000/admin.html
API:    http://localhost:3000/api

Prerequisites

  • Node.js v14+
  • npm v6+
  • SQLite3 (included with Node)
  • MongoDB (optional)

Installation

# Clone repository
git clone https://github.com/DHANUSHGCODE/EcommerceHub-Pro.git
cd EcommerceHub-Pro

# Install dependencies
npm install

# Setup environment
cp .env.example .env

# Initialize database
node database.js

# Start development server
npm start

Server runs on http://localhost:3000

πŸ“– Documentation

πŸ—οΈ Project Structure

EcommerceHub-Pro/
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ index.html              # Main store page
β”‚   β”œβ”€β”€ admin.html              # Admin dashboard  
β”‚   β”œβ”€β”€ styles/
β”‚   β”‚   β”œβ”€β”€ main.css            # Animated styles
β”‚   β”‚   └── js/
β”‚   β”‚       β”œβ”€β”€ main.js         # Store functionality
β”‚   β”‚       └── admin.js        # Admin functionality
β”‚   └── images/                 # Product images
β”œβ”€β”€ database.js                 # Database config
β”œβ”€β”€ package.json                # Dependencies
β”œβ”€β”€ .env.example                # Environment template
β”œβ”€β”€ README.md                   # This file
└── SETUP.md                    # Detailed setup guide

πŸ’» Technology Stack

Frontend

  • HTML5
  • CSS3 (with animations)
  • JavaScript ES6+
  • Responsive Design

Backend

  • Node.js
  • Express.js
  • RESTful API
  • JWT Authentication

Database

  • SQLite (local)
  • MongoDB (cloud - optional)
  • Mongoose ODM

Tools & Services

  • Git & GitHub
  • npm
  • Postman

πŸ” Security Features

  • βœ… JWT Token Authentication
  • βœ… Password Hashing (bcrypt)
  • βœ… CORS Protection
  • βœ… SQL Injection Prevention
  • βœ… XSS Protection
  • βœ… HTTPS Ready
  • βœ… Rate Limiting

πŸ‘€ Admin Login

Email:    admin@ecommercehub.com
Password: admin123

πŸ“Š API Endpoints

Products

GET    /api/products           # Get all products
GET    /api/products/:id       # Get single product
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 cart
POST   /api/cart               # Add to cart
PUT    /api/cart/:id           # Update item quantity
DELETE /api/cart/:id           # Remove from cart

Orders

GET    /api/orders             # Get orders (admin)
POST   /api/orders             # Create order
GET    /api/orders/:id         # Get order details

🎯 Key Files

File Purpose
public/index.html Main store page with responsive layout
public/admin.html Professional admin dashboard
public/styles/main.css Global styles with animations
public/styles/js/main.js EcommerceApp class (product & cart management)
public/styles/js/admin.js AdminPanel class (admin functionality)
database.js Database configuration & initialization
package.json Project dependencies

πŸ“ˆ Performance

  • Optimized animations
  • Lazy loading
  • Local storage caching
  • Minified assets (production)
  • GZIP compression ready

πŸ› Troubleshooting

Port Already in Use

# Change port in .env
PORT=3001

Database Connection Error

rm data/ecommerce.db
node database.js

Missing Dependencies

npm install
npm audit fix

For detailed troubleshooting, see SETUP.md

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit changes (git commit -m 'Add AmazingFeature')
  4. Push to branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“„ License

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

πŸ‘¨β€πŸ’Ό Author

DHANUSHGCODE

πŸ™ Acknowledgments

  • Professional animated UI design
  • RESTful API architecture
  • Security best practices
  • Database optimization

πŸ“ž Support

For support, email support@ecommercehub.com or open an issue

πŸ”— Links


Last Updated: December 13, 2025 Version: 1.0.0 Status: βœ… Production Ready

About

A professional full-stack e-commerce platform with stunning animations, real-time inventory management, advanced admin panel, and local database integration. Features product management, order processing, payment integration, and secure authentication.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published