- Extract the
Tempus_Fugit
folder into thehtdocs
directory or usegit clone
to clone the repository from https://github.com/ShivMoh/Tempus_Fugit.git intohtdocs
. - Start php and MySQL in XAMMP.
- Create a database named
karens_kitchen
in PhpMyAdmin. - Navigate to the
/Tempus_Fugit
directory.
To run the project in a subdirectory within htdocs
, adjust the global variables BASE_URL
, RESOURCE_PATH
, and CSS_PATH
in inc/core/config.php
.
For instance, to run the application from a subfolder named personal
(located within htdocs
and containing the Tempus_Fugit
project folder), modify the global variables as follows:
htdocs
├── personal
└── Tempus_Fugit
BASE_URL = "/personal/Tempus_Fugit";
CSS_PATH = "http://localhost/personal/Tempus_Fugit/public/css/"
RESOURCE_URL = "http://localhost/personal/Tempus_Fugit/public/images/"
Note that inc/core/config.php
is where the configurations for the database are set. If desirable, go here to change database settings.
The project automatically initializes the database with data on the first run. To reinitialize the database, if needed, follow these steps:
- Drop existing tables in the
karens_kitchen
database. - Delete the existing session cookie:
- Open browser's inspect tool.
- Navigate to the Application Tab.
- Locate and delete the session cookie under
http://localhost
...
Note that the application only initializes menuitems and employees. To see bill on bill tab, please create one or more using the cash register interface.
Also to note, with the set database values for menuitem, bill item and bill, the max price and total is 999999999999999999999999.99999. Therefore, in the unlikely event a number higher than this is calculated or added as the price for an item, it will appear as a math error in calculation. However, it is not so. The values in the database are simply limited to their given size.
If the webpage styling isn't appearing, perform these steps:
- Go to your browser's settings.
- Search for and select the option to clear browsing history.
- Specifically, choose to clear Cache images and files (instructions based on Chrome Web Browser).
- Reload the webpage.
For a visual reference of the intended website design, please refer to the Figma file: https://www.figma.com/file/CpIRBICRaH4dku8PVfwDsJ/CSE3101_Design_Assigment_2?type=design&node-id=0%3A1&mode=design&t=FQXvdimrpZpFMqSp-1.
When you need to insert multiple values into fields like othernames for employees or tags and ingredients for menu items, enter the values separated by commas without spaces, like "tag1,tag2,tag3". These fields display instructions through the HTML title attribute when you hover over them. However, be aware that these instructions might take some time to appear or, in some cases, might not load correctly.
For clarity on the function of each action button, simply hover your cursor over them. A brief description will appear, usually within half a second, to guide you on their specific purpose.