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:
- Clone the Repository:
bash git clone https://github.com/karimshaban01/e-shop.git - Navigate to the Project Directory:
bash cd e-shop Set Up a Local Server:
- Install XAMPP (or any LAMP/WAMP server).
- Place the project folder inside the
htdocsdirectory (if using XAMPP).
Create a Database:
- Access
phpMyAdmin(usually available athttp://localhost/phpmyadmin). - Create a new database (e.g.,
eshop). - Import the provided
.sqlfile into the database.
- Access
Configure the Database Connection:
- Locate the configuration file (e.g.,
config.php). - Update the database credentials:
php $host = 'localhost'; $user = 'root'; $password = ''; $dbname = 'eshop';
- Locate the configuration file (e.g.,
Run the Application:
- Open your browser and navigate to
http://localhost/e-shop.
- Open your browser and navigate to
Usage
Admin Panel:
- Login with admin credentials to manage products, users, and orders.
Customer Portal:
- Browse products, add items to the cart, and place orders.
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:
- Fork the repository.
- Create a new branch for your feature or bug fix:
bash git checkout -b feature-name - Commit your changes:
bash git commit -m "Add feature or fix description" - Push to your fork and submit a pull request.
License
This project is licensed under the MIT License.
Log in or sign up for Devpost to join the conversation.