This is a demo application which allows placing orders for customers and managing placed orders. It implements authentication, separate user roles for customers and cafeterias, order management (including tracking and updates).
- PHP 7.x or higher
- MySQL
The above requirements can be fulfilled as WAMP, LAMP, or MAMP setups.
- Create the project directory in the
.../www
directory as per your operating system. - Configure the username, password, and database name in
./app/includes/DatabaseEngine.php
. - Set the database name in
./sql/generate.sql
at lines 1 and 2. - Execute the DDL script
generate.sql
by running the command below:
mysql -u <USEERNAME> -p < ./sql/generate.sql
- Navigate to the URL specified by your installed server.
This application follows a typical MVC architecture. All code is nested under
./app
. Models, views, and controllers are stored in their respective
subdirectories. Some common view elements are stored in ./app/includes
along
with DatabaseEngine.php
that initializes a throwaway database connection.
All routing information is stored in ./app/config/routes.php
.