ElectraBay E-commerce

Table of Contents

This is a list of all the sections in this post. Click on any of them to jump to that section.

ElectraBay E-commerce

PHP MySQL HTML5 CSS3

ElectraBay is an e-commerce platform developed as part of a university project for the CSE311 course at North South University. The system includes the core features of an online shopping application such as user authentication, a product catalog, shopping cart functionality, and an admin panel for managing products and orders. It was designed to demonstrate how a full online marketplace can be built and managed, even at a student level, combining both the customer-facing and administrative sides of e-commerce.

I worked on this project together with three of my classmates at a time when I was just beginning to learn programming. Back then, I was still experimenting, trying to understand how coding could be applied to real-world systems. I drew inspiration from a boilerplate project I had found, though I no longer remember where it came from.

Here, I took help from copilot to write this guide how to use. If you get any issue while run this,take help from Claude Code,Codex,Cursor or Copilot.

Although it is an old project, it holds value for me as a milestone in my journey as a developer, and I have open-sourced it so others can explore, learn from it, or contribute.

✨ Features

  • 🔐 User Authentication - Secure login and registration system with session management
  • 🛍️ Product Catalog - Browse and search products with category filtering
  • 🛒 Shopping Cart - Full cart functionality with quantity management and price calculation
  • 👨‍💼 Admin Panel - Complete dashboard for product and order management
  • 👤 User Dashboard - Personal account management and order history
  • 📦 Order Management - Track orders from placement to delivery
  • 📱 Responsive Design - Mobile-friendly interface for all devices
  • 💰 Multi-Currency Support - Default BDT with easy currency configuration

🛠️ Tech Stack

  • PHP - Server-side scripting language
  • MySQL - Relational database management system
  • HTML5 - Markup language for web structure
  • CSS3 - Styling and responsive design
  • PDO/MySQLi - Database connectivity
  • XAMPP/WAMP/LAMP - Local development environment
  • phpMyAdmin - Database administration tool

📋 Prerequisites

Before you begin, ensure you have the following installed:

  • XAMPP, WAMP, or LAMP stack
  • PHP (v7.0 or higher with PDO/MySQLi support)
  • MySQL (v5.6 or higher)
  • Modern web browser (Chrome, Firefox, Safari, Edge)

⚙️ Installation & Setup

  1. Clone the repository
git clone https://github.com/Rahat-Kabir/ElectraBay-Ecommerce.git
cd ElectraBay-Ecommerce
  1. Move project to web server directory
# For XAMPP (Windows)
cp -r ElectraBay-Ecommerce C:/xampp/htdocs/
 
# For WAMP (Windows)
cp -r ElectraBay-Ecommerce C:/wamp64/www/
 
# For LAMP (Linux)
sudo cp -r ElectraBay-Ecommerce /var/www/html/
  1. Start server services
  • Open XAMPP/WAMP control panel
  • Start Apache and MySQL services
  1. Database setup
  • Navigate to phpMyAdmin
  • Create new database: ecc
  • Import the SQL file from project directory
  1. Configuration (Already pre-configured)
  • config.php: Database connection settings
    • Host: localhost
    • Username: root
    • Password: “ (empty)
    • Database: ecc
  • connection.php: Alternative MySQL connection
  1. Access the application
http://localhost/ElectraBay-Ecommerce

🚀 Quick Start

# 1. Start your local server (XAMPP/WAMP/LAMP)
# 2. Ensure MySQL is running
# 3. Open browser and navigate to:
http://localhost/ElectraBay-Ecommerce
 
# Admin access:
http://localhost/ElectraBay-Ecommerce/admin

📝 Important Notes

  • Database name must be exactly ecc as specified in configuration
  • Default MySQL credentials: username root with no password
  • Currency is set to Bangladeshi Taka (Tk) - configurable in config.php
  • Ensure Apache and MySQL services are running before accessing
  • Check project files for SQL dump if not included in root directory

🤝 Contributing

This project is open-source and welcomes contributions! Feel free to fork, improve, and submit pull requests.

📄 License

This project was developed as part of CSE311 coursework at North South University and is now open-sourced for educational purposes.