e-Shop

Welcome to the e-Shop project! This is a PHP-based e-commerce platform designed to provide a seamless online shopping experience. The project makes use of HTML, PHP, and CSS to build a dynamic and responsive web application for managing and browsing products, handling user transactions, and more.

Table of Contents


Features

  • Product Management: Add, edit, and delete products.
  • User Authentication: Register, log in, and manage user accounts securely.
  • Shopping Cart: Add items to the cart, update quantities, and check out.
  • Order Management: View and manage orders efficiently.
  • Responsive Design: Optimized for both desktop and mobile devices.

Technologies Used

  • PHP: Backend logic and server-side processing.
  • HTML: Structuring the web pages.
  • CSS: Styling and layout design.
  • MySQL: Database for storing product, user, and transaction data.

Installation

Follow these steps to set up the e-Shop project locally:

  1. Clone the Repository: bash git clone https://github.com/karimshaban01/e-shop.git
  2. Navigate to the Project Directory: bash cd e-shop
  3. Set Up a Local Server:

    • Install XAMPP (or any LAMP/WAMP server).
    • Place the project folder inside the htdocs directory (if using XAMPP).
  4. Create a Database:

    • Access phpMyAdmin (usually available at http://localhost/phpmyadmin).
    • Create a new database (e.g., eshop).
    • Import the provided .sql file into the database.
  5. Configure the Database Connection:

    • Locate the configuration file (e.g., config.php).
    • Update the database credentials: php $host = 'localhost'; $user = 'root'; $password = ''; $dbname = 'eshop';
  6. Run the Application:

    • Open your browser and navigate to http://localhost/e-shop.

Usage

  1. Admin Panel:

    • Login with admin credentials to manage products, users, and orders.
  2. Customer Portal:

    • Browse products, add items to the cart, and place orders.
  3. Customization:

    • Modify the CSS files to change the appearance.
    • Extend the PHP files to add new features.

File Structure

Below is an overview of the major files and directories in the project:

  • index.php: Entry point of the application.
  • /config: Configuration files for database and application settings.
  • /assets: Static files (images, CSS, JavaScript).
  • /templates: HTML templates for the frontend.
  • /includes: Reusable PHP components (e.g., header, footer, database connection).
  • /admin: Admin dashboard to manage the e-commerce platform.

Contributing

Contributions are welcome! To contribute:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix: bash git checkout -b feature-name
  3. Commit your changes: bash git commit -m "Add feature or fix description"
  4. Push to your fork and submit a pull request.

License

This project is licensed under the MIT License.


Built With

Share this project:

Updates