- PHP 8.0 or higher
- Composer
- MySQL
- Enabled PDO MySQL Extension for Database
- Docker Desktop (optional)
-
Find the correct php.ini file:
- Open a terminal and run "php --ini"
- There should be a "Loaded Configuration File" there with the directory of your "php.ini" (Example: "C:\php-8.3.0\php.ini")
- Follow that directory to get to your php.ini file (sometimes display as just "php")
-
Edit the php.ini in Notepad:
- Open File Explorer
- Go to
C:\phpfolder - Right-click
php.ini - Select "Open with" → Notepad
-
Enable PDO MySQL:
- Press Ctrl + F
- Search for "pdo_mysql"
- Find this line:
;extension=pdo_mysql - Remove the semicolon (;) so it looks like: "extension=pdo_mysql"
- Save the file
Congrats! You have now enable PDO_MySql Extension!!
-
Clone the repository
- in your "xampp\htdocs" folder, clone or extract the project
-
Install dependencies
- In a terminal within "QuickBuyBSCS3C\api", enter:
composer install
-
Run migrations
- within "QuickBuyBSCS3C\api", enter:
vendor/bin/phinx migrate
-
Run seeders
- within "QuickBuyBSCS3C\api", enter:
vendor/bin/phinx seed:run
-
Install Docker Desktop
- Download and install from Docker's website
- Ensure Docker Desktop is running
-
Clone the repository
git clone [your-repository-url] cd [project-directory] -
Copy environment file
cp .env.example .env
Edit
.envfile with your database credentials -
Start Docker containers
docker-compose up -d
-
Run migrations and seeders
# Access the container's shell docker-compose exec app bash # Run migrations vendor/bin/phinx migrate # Run seeders vendor/bin/phinx seed:run
After running seeders, the following test users will be available:
| Username | Password | Role | |
|---|---|---|---|
| admin | admin@example.com | admin123 | admin |
| john_doe | john@example.com | password123 | user |