This is a guide on how to set up the project
Before starting, you need to have the following installed on your machine:
- Apache web server
- PHP
- MySQL
- Clone this repository to your local machine using
git clone https://github.com/cybernerdie/php-ecommerce.git
- Install dependencies with
composer install
-
Create a new MySQL database for your project.
-
Create a
.env
file at the root of the project and add your database credentials in the following format:
DB_HOST=localhost
DB_USERNAME=yourdatabaseusername
DB_PASSWORD=yourdatabasepassword
DB_NAME=yourdatabasename
Run tests using PHPUnit:
vendor/bin/phpunit