This project is a simple e-commerce website using basic web technologies. The project is divided into two main parts: Front End and Back End.
- HTML: For structuring the pages.
- CSS: For styling and designing the pages.
- JavaScript: For adding dynamic interactions.
- Bootstrap: Framework for quickly designing responsive interfaces.
- PHP: For server-side processing and database interactions.
ecommerce_project/ ├── src/ │ ├── assets/ │ │ ├── css/ │ │ │ └── styles.css │ │ ├── js/ │ │ │ └── scripts.js │ │ └── images/ │ │ └── logo.png │ ├── components/ │ │ ├── header.php │ │ ├── footer.php │ │ └── navbar.php │ ├── pages/ │ │ ├── home.php │ │ ├── product.php │ │ └── cart.php │ └── index.php ├── public/ │ ├── index.html │ └── favicon.ico ├── vendor/ # Will be created when running composer install ├── .gitignore ├── composer.json ├── package.json └── README.md
- Clone the repository:
bash git clone https://github.com/Ahmedabdulelah/Ecommerce.git
- Install dependencies (when adding the back end): Ensure you have Composer installed. If not, you can download it from here.
bash cd ecommerce_project composer install
- Open the main file:
You can open
public/index.html
in your web browser to see the basic front-end design.
-
src/assets: Contains assets such as CSS, JS, and images.
-
src/components: Contains reusable UI components like headers and footers.
-
src/pages: Contains the different pages of the website.
-
src/index.php: The main entry point for the application.
-
services: To manage the main service operations and functions in the application.
-
utils: For helper functions.
-
config: For application configuration files.
- Create a new database on your MySQL server. For example:
sql CREATE DATABASE ecommerce;
-
Update the configuration file
config/config.php
with your database details. -
Run the necessary SQL scripts to create the required tables in your database.