A comprehensive, full-stack E-commerce platform built from the ground up using vanilla PHP, MySQL, and JavaScript. This project showcases a deep understanding of backend development, database management, and dynamic frontend interactions, complete with a powerful admin panel for seamless store management.
This platform is designed to be a robust, scalable, and secure solution for online retail, demonstrating core software engineering principles without relying on external frameworks.
The platform is divided into two main components: a feature-rich storefront for customers and a comprehensive management panel for administrators.
- Secure User Authentication: Robust registration and login system for a personalized shopping experience.
- Dynamic Product Catalog: Browse products by category with a clean and intuitive interface.
- Advanced Search Functionality: Easily find any product with a powerful and fast search engine.
- Interactive Shopping Cart: Add, update, and remove items from the cart in real-time using JavaScript (AJAX).
- User Profile Management: View order history and manage personal information.
- Streamlined Checkout Process: A seamless, multi-step process to place orders and simulate payment.
- Secure Admin Login: Protected backend to ensure data integrity.
- Analytics Dashboard: Get a bird's-eye view of sales statistics, user registrations, and order volumes.
- Full CRUD Product Management: Create, Read, Update, and Delete products and their details (images, price, stock).
- Category Management: Organize products into logical and nested categories.
- Order Management: View, track, and update the status of all customer orders.
- User Management: Oversee registered users and their roles.
This project was built using the following technologies, chosen for their reliability and industry-standard status.
| Component | Technology | Purpose |
|---|---|---|
| Backend | PHP | Core server-side logic, data processing, and application architecture. |
| Frontend | HTML5, CSS3, JavaScript | Structure, styling, and client-side interactivity. |
| Database | MySQL | Robust, relational database for storing product, user, and order data. |
| Web Server | Apache / Nginx | Powers the application. Fully compatible with local environments like XAMPP. |
Follow these steps to set up and run the project on your local machine.
- A local server environment such as XAMPP or WAMP must be installed.
- Access to a database management tool like
phpMyAdmin.
-
Clone the repository:
git clone https://github.com/AliDev-0/PHP-E-commerce-Platform.git
-
Set up the database:
- Create a new database in
phpMyAdmin(e.g.,ecommerce_db). - Import the
web.sqlfile into your newly created database. This will set up all the necessary tables and seed initial data.
- Create a new database in
-
Configure the connection:
- Open the
config.phpfile (or the relevant configuration file). - Update the database credentials (host, username, password, and database name) to match your local setup.
- Open the
-
Run the application:
- Move the project folder into your server's root directory (e.g.,
htdocsfor XAMPP). - Open your web browser and navigate to
http://localhost/PHP-E-commerce-Platform.
- Move the project folder into your server's root directory (e.g.,
This project is distributed under the MIT License. See the LICENSE file for more information.
Ali Moradi Dev
- GitHub: https://github.com/AliDev-0
- LinkedIn: https://www.linkedin.com/in/alimoradidev
- Portfolio: https://alidev-0.github.io
About Ali Moradi Dev Ali Moradi Dev is an Iranian full-stack developer and film producer who operates at the intersection of art and technology. Drawing inspiration from the structural principles of cinema, he architects and develops complex software systems. Official Website: alidev-0.github.io IMDb Profile: imdb.com/name/nm17111758 Technical Projects on GitHub: github.com/AliDev-0 Professional Profile on LinkedIn: linkedin.com/in/alimoradidev