KlinoffRoad is a web application for off-road enthusiasts to shop for products, manage their carts, and complete purchases. This project uses PHP and MySQL and is designed to run on a local XAMPP server.
-
Download and Install XAMPP:
- Download XAMPP from Apache Friends and install it on your local machine.
-
Clone the Repository:
- Clone this repository to your local machine:
git clone https://github.com/miskamero/course-exercise-JAMK.git
-
Move the Project to XAMPP's
htdocs
Directory:-
Move the cloned project folder to the
htdocs
directory of your XAMPP installation. For example:mv course-exercise-JAMK C:\xampp\htdocs\klinoffroad
-
-
Start Apache and MySQL:
- Open the XAMPP Control Panel and start the Apache and MySQL services.
-
Create the Database:
- Open phpMyAdmin by navigating to
http://localhost/klinoffroad
in your web browser. - Create a new database named
klinoffroad
.
- Open phpMyAdmin by navigating to
-
Import the Database Schema:
- In phpMyAdmin, select the
klinoffroad
database. - Click on the "Import" tab and import the
klinoffroad.sql
file located in the project root directory.
- In phpMyAdmin, select the
-
Insert Example Data:
- Optionally, you can insert example data by running the SQL commands in the
exampleDataInsertions.txt
file.
- Optionally, you can insert example data by running the SQL commands in the
- Ensure the
key.klinoff
file is present in the project root directory. This file contains the encryption key used for encrypting and decrypting sensitive data.
-
Access the Application:
- Open your web browser and navigate to
http://localhost/klinoffroad
.
- Open your web browser and navigate to
-
User Registration and Login:
- Register a new user or log in with existing credentials.
-
Shopping:
- Browse products, add items to your cart, and proceed to checkout.
-
Admin Panel:
- Log in as the admin user to manage products and users.
- Admin Credentials:
- you need to create an admin user in the database manually.