An e-commerce website for selling computer parts and accessories built using PHP, MariaDB, HTML, CSS and JavaScript. Built as part of the Aston University Computer Science Team Project module.
For information on how to contribute to the project, please see the CONTRIBUTING.md file.
These instructions will guide you through setting up the project to run locally on your machine for development and testing purposes.
-
Install XAMPP
winget install -e --id ApacheFriends.Xampp.8.2
-
Clone the repository using
git clone
and change directory to the root of the repositorycd evotech
-
Open XAMPP and start Apache and MySQL
-
Run the setup script for Windows
.\setup\setupWindows.ps1
-
Open the following links in your browser:
-
Complete the evotech; setup in your browser
The script will have configured everything so in the future if you need to run locally again:
-
Start Apache and MySQL in XAMPP
-
Open the following links in your browser:
To use the website, you will need to construct the database as per the instructions in Constructing the database.
-
Install xcode command line tools
xcode-select --install
-
Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh) NONINTERACTIVE=1"
-
Install XAMPP
brew install --cask xampp
-
Clone the repository using
git clone
and change directory to the root of the repositorycd evotech
-
Start Apache and MySQL in XAMPP (manager-osx)
-
Run the setup script for macOS
./setup/setupMac.sh
-
Open the following links in your browser:
-
Complete the evotech; setup in your browser
The script will have configured everything so in the future if you need to run locally again:
-
Start Apache and MySQL in XAMPP
-
Open the following links in your browser:
To use the website, you will need to construct the database as per the instructions in Constructing the database.
-
Install XAMPP
wget "https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/8.2.12/xampp-linux-x64-8.2.12-0-installer.run" chmod +x xampp-linux-x64-8.2.12-0-installer.run sudo ./xampp-linux-x64-8.2.12-0-installer.run
-
Clone the repository using
git clone
-
Change directory to the root of the repository
cd evotech
-
Start Apache and MySQL in XAMPP
sudo /opt/lampp/lampp start
-
Run the setup script for Linux
./setup/setupLinux.sh
-
Open the following links in your browser:
-
Complete the evotech; setup in your browser
The script will have configured everything so in the future if you need to run locally again:
-
Start Apache and MySQL in XAMPP
-
Open the following links in your browser:
To use the website, you will need to construct the database as per the instructions in Constructing the database.
The database needs to be constructed before the website can be used.
[!TIP] The OOBE evotech; setup will automatically construct the database for you. If you have not used the OOBE setup, follow the instructions below.
- Open the following link in your browser:
- Log in with your MySQL credentials
- Default username:
root
- Default password:
''
(empty string)
- Default username:
- The database name is your username followed by '_db'
- For example, if your username is
root
, the database name isroot_db
- For example, if your username is
- Click on the
SQL
tab - Open the
evotechDB.sql
file in thesetup
directory - Copy the contents of the file and paste them into the SQL tab
- Click
Go
to run the SQL commands
The database can be populated with dummy data to test the website.
[!TIP] The OOBE evotech; setup will automatically populate the database with dummy data for you if you choose to do so. If you have not used the OOBE setup, follow the instructions below.
This will populate the database with dummy product data. The site requires some products to be present in the database to function correctly.
- Open the following link in your browser:
- Log in with your MySQL credentials
- Default username:
root
- Default password:
''
(empty string)
- Default username:
- Ensure you have created the database as per the instructions in Constructing the database
- Click on the database name
- The database name is your username followed by '_db'
- For example, if your username is
root
, the database name isroot_db
- Click on the
SQL
tab - Open the
dummyProductData.sql
file in thesetup
directory - Copy the contents of the file and paste them into the SQL tab
- Click
Go
to run the SQL commands
This will populate the images
directory with dummy product images.
Whilst not necessary for the site to function, it will make the site look more realistic.
- Copy the image folders inside of
setup/examplePhotos/products
toview/images/products
- For example,
setup/examplePhotos/products/1
should be copied toview/images/products/1
- This can be done using the file explorer or the command line
- For example,
- 220064521 - Mohammed Kalam - Team Leader | Project Manager | Full Stack Developer
- 220073925 - Viktor Dvornik - Backend Lead | Backend Code Review | Backend Developer
- 220043504 - Aaron Dosanjh - Frontend Lead | Frontend Code Review | Frontend Developer
- 220070614 - Hanzalah Naguthane - UI/UX Lead | UI/UX Design | Frontend Developer
- 220216876 - Reece Edwards - Backend Developer | Documentation
- 220095086 - Thomas Evans - Frontend Developer
- 220164359 - Gurjot Dhillon - Frontend Developer
- 220098548 - Mahdi Egal - Frontend Developer