Skip to content

EsamAdelAlselwi/E-Commerce-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-Commerce Web Project 🛒

A comprehensive E-Commerce web application built with PHP using a custom MVC architecture. This project provides a complete shopping experience for users and a robust administrative dashboard for store management.


💡 Project Concept

The project aims to provide a flexible and user-friendly e-commerce platform, allowing merchants to showcase their products and customers to browse, add items to a cart, and complete orders securely.

✨ Key Features

Feature Description
Custom MVC Architecture Professional code organization separating Business Logic (Model), Presentation (View), and Control (Controller).
Advanced Cart System Add, update, and remove products from the cart with real-time calculation of totals.
Admin Dashboard Integrated interface to manage products, categories, orders, and users.
Order Management Track order status from "Pending" to "Completed" with full order details.
Auth & Permissions User registration, login, and role-based access control (Admin / Customer).
Security CSRF protection, password hashing, and PDO prepared statements to prevent SQL injection.
RESTful API Simple JSON endpoints for retrieving products and orders data.

🛠️ Tech Stack

  • Backend: PHP 8.x (or 7.4+).
  • Database: MySQL / MariaDB.
  • Frontend: HTML5, CSS3, JavaScript (Vanilla JS).
  • Styling: Custom Responsive CSS.
  • Database Driver: PDO (PHP Data Objects).

🚀 Getting Started (Step-by-Step)

1. Prerequisites

  • Local server environment like XAMPP, WAMP, or MAMP.
  • Git installed (optional).

2. Installation

Clone the repository or download the ZIP file:

git clone https://github.com/EsamAdelAlselwi/E-Commerce-Project.git
cd E-Commerce-Project

3. Database Setup

  1. Open phpMyAdmin (usually at http://localhost/phpmyadmin).
  2. Create a new database named ecommerce_store.
  3. Select the database and go to the Import tab.
  4. Choose the ecommerce_store.sql file from the project root and click Go.

4. Configuration

  1. Rename env.example to .env (or ensure it exists).
  2. Open config/database.php and config/app.php to verify settings:
    • DB_HOST: localhost
    • DB_NAME: ecommerce_store
    • DB_USER: root
    • DB_PASS: (Leave empty for XAMPP)
    • BASE_URL: http://localhost/E-Commerce/public/ (Adjust to match your local path).

5. Run the Application

Open your browser and navigate to: http://localhost/E-Commerce/public/


📸 Screenshots

The following images showcase the main interfaces of the project:

Home Page Admin Dashboard
Home Dashboard
Product Details Shopping Cart
Product Cart
Checkout Page Order Management
Checkout Orders

📜 License

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

👤 Developer

Esam Adel Alselwi

About

E-Commerce Web Project: A comprehensive e-commerce web application built with PHP and a custom MVC architecture. It offers a complete shopping experience for users and a robust admin dashboard for store, product, and order management.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors