This is a small dynamic website built mainly with php as part of a school mini-project.
Follow these simple steps to set up the project:
-
Install Git:
- Download and install Git from [https://git-scm.com/downloads].
-
Clone the Repository:
- Open your VS Code or your preferred text editor.
- Open your terminal and navigate to the folder in which you'd like to clone the project.
- Run the following command in your terminal:
git clone https://github.com/PreYem/PC_Vendor.git
- Wait for the cloning process to finish.
-
Install Tailwind CSS (Optional):
- Install Tailwind CSS by following the instructions here: [https://tailwindcss.com/docs/installation].
- Note that Tailwind CSS is not necessary and you can use any CSS library you prefer.
-
Import the Database:
- Open your MySQL Workbench.
- Create a new database schema.
- Navigate to the import option in the menu bar.
- Import the database and its tables/data from the
.sql
file located in the root directory under the namePC_Vendor_DB.sql
.
Ensure you have the following dependencies installed on your machine:
- MySQL Workbench
- Node.js and npm (Mainly for Tailwind CSS).
- XAMPP, WAMP, or similar tools to start your local server environment
Set up your local server and start the project:
-
Start Your Local Server:
- Ensure your local server (e.g., XAMPP or WAMP) is running. Check currently running services in your Task Manager.
-
Move the Project:
- Move your cloned project to the appropriate directory in your XAMPP folder (
htdocs
for XAMPP orwww
for WAMP).
- Move your cloned project to the appropriate directory in your XAMPP folder (
-
Access the Website:
- Open your browser and go to
http://localhost/PC_Vendor
or whichever localhost port you have depending on the servers on your machine, and it will take you directly to theindex.php
page by default.
- Open your browser and go to