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.
- β 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
- β 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
Store: http://localhost:3000
Admin: http://localhost:3000/admin.html
API: http://localhost:3000/api
- Node.js v14+
- npm v6+
- SQLite3 (included with Node)
- MongoDB (optional)
# 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 startServer runs on http://localhost:3000
- SETUP.md - Complete setup guide with all URLs and API documentation
- API Documentation - Endpoint reference
- Database Setup - Database configuration
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
- HTML5
- CSS3 (with animations)
- JavaScript ES6+
- Responsive Design
- Node.js
- Express.js
- RESTful API
- JWT Authentication
- SQLite (local)
- MongoDB (cloud - optional)
- Mongoose ODM
- Git & GitHub
- npm
- Postman
- β JWT Token Authentication
- β Password Hashing (bcrypt)
- β CORS Protection
- β SQL Injection Prevention
- β XSS Protection
- β HTTPS Ready
- β Rate Limiting
Email: admin@ecommercehub.com
Password: admin123
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)
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
GET /api/orders # Get orders (admin)
POST /api/orders # Create order
GET /api/orders/:id # Get order details
| 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 |
- Optimized animations
- Lazy loading
- Local storage caching
- Minified assets (production)
- GZIP compression ready
# Change port in .env
PORT=3001rm data/ecommerce.db
node database.jsnpm install
npm audit fixFor detailed troubleshooting, see SETUP.md
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit changes (
git commit -m 'Add AmazingFeature') - Push to branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
DHANUSHGCODE
- GitHub: @DHANUSHGCODE
- Email: your-email@example.com
- Professional animated UI design
- RESTful API architecture
- Security best practices
- Database optimization
For support, email support@ecommercehub.com or open an issue
Last Updated: December 13, 2025 Version: 1.0.0 Status: β Production Ready