This project is an e-commerce platform where users can purchase various supplement products. It offers a wide selection including energy sources, protein powders, L-Carnitine, and many other supplements, all with a modern and user-friendly interface.
- 🟢 User login and registration system
- 🟢 Add, edit, and delete supplements (Admin Panel)
- 🟢 Product details and descriptions
- 🟢 Add to cart and purchase operations
- 🟢 User-friendly interface
- 🟢 Mobile compatible
- Frontend: HTML, CSS, Bootstrap, Javascript
- Backend: PHP
- Database: MySQL (managed via phpMyAdmin)
- Server: WampServer
-
Download and install WampServer: WampServer
-
Copy project files into
C:/wamp64/www/. -
Database Connection:
- To set up the database for the project, use the
primefit.sqlfile. This SQL file contains the necessary schema and data to initialize the database.
Steps:
-
Download the
primefit.sqlfile and import it into your database management system (MySQL, PostgreSQL etc.). -
Run the SQL file:
If you are using MySQL, you can execute the following command via the MySQL terminal or GUI:
SOURCE path/to/primefit.sql;The database will be created with the required tables and data for the project.
-
Make sure you have the correct permissions and your database environment is set up properly before importing the file.
-
Use the following code in your relevant PHP file to connect to the database:
<?php // Database connection $servername = "localhost"; $username = "root"; $password = ""; $dbname = "primefit"; ?>
And create a database named
primefitand the related tables in phpMyAdmin on WampServer.
- To set up the database for the project, use the
-
Run the project:
- In your browser, navigate to
http://localhost/primefit
- In your browser, navigate to
Another view from the homepage

A view from product management

- Users can register and log in to browse and purchase products.
- Products can be added to cart and purchased.
- Product management can be performed through the admin panel.



