siteground-store-pure-php
SiteGround task for simple online store.
installation
- Clone the repository
- In the main folder you'll find the CONFIG.php file:
- Database configuration
- Project Directory path
- Before accessing the project URL, you'll need to run the INDEX.php script in db-init. It'll initialize the Tables in Database.
- You can also use the SQL dump which was added in the repository. It contains: Products and their price + discounts for a specific quantity.
- There is also the Sales Table which contains an example sale information for few of the products.
folder structure
- APIs folder contains all of the AJAX requests used in this project
- ASSETs folder contains SCSS styles & JS scripts.
- DB-INIT folder contains INDEX.php script which can be used for quick installation of the project.
- Framework.php contains a very simple framework designed for the needs of this project.
- Config.php contains all the data for the server setup: DB & Project Directory.