Skip to content

uno-jerome/EZ-PC

Repository files navigation

Estore

Hi! This is our school e-commerce project.

It has a simple frontend, a PHP backend API, and a MySQL/MariaDB database.

Quick Run

1) Set up the database first

Run item_database_structure_new.sql in your MySQL/MariaDB server.

This is the recommended default because it gives you a clean and consistent setup.

Optional (for quick demo data):

If you want a helper script instead:

php scripts/rebuild_db.php

2) Start the website + API

Easiest on Windows:

Manual way (any OS):

php -S 127.0.0.1:8000 -t .

Open this in your browser:

Main Files

Project Notes

  • composer.json and composer.lock are tracked so dependency metadata stays with the project.
  • Local Composer artifacts like vendor/ and composer.phar are ignored by .gitignore and should not be committed.
  • Two unused helper scripts were removed from the repo: scripts/patch_orders.php and scripts/demo_status.php.
  • Prices are stored VAT-inclusive in the database; checkout displays reverse-calculated VAT at the frontend only.

API Endpoints

DB Environment Variables

The API checks these values:

  • DB_HOST (default: 127.0.0.1)
  • DB_PORT (default: 3306)
  • DB_NAME (default: itc_database_admin)
  • DB_USER (default: root)
  • DB_PASSWORD (default: root)

PowerShell example:

$env:DB_HOST = '127.0.0.1'
$env:DB_USER = 'root'
$env:DB_PASSWORD = 'root'

Quick Troubleshooting

  • could not find driver: enable pdo_mysql in your PHP setup.
  • DB connection error: check your DB credentials and make sure MySQL/MariaDB is running.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors