- Virtual restaurant is a website where you can order meals, desserts & beverages and we will deliver it to your location.
- It has the same concept as e-commerce (shopping site) where you can pick any product you like and they will send it to you.
- The difference is, while most e-commerce companies act as an aggregator, instead we act as a product owner.
If you want to see how this project visually looks, then you can open the PREVIEW.md
file in the parent directory or click here to redirect.
- HTML, CSS & Vanilla JS
- PHP 7.3.2
- Laravel 7.x
- Bootstrap 4.2.1
- MariaDB 10.1.38
- jQuery (included for dependencies only)
- Download this repository as a
.zip
file. - Create a new laravel project using composer in your local computer.
- Extract the previously downloaded zip file.
- Copy all items from inside the extracted file.
- Paste it into your newly created laravel project folder.
- Open
phpmyadmin
and create a new database (to make it easier to configure, named it tovirtual-restaurant
). - Import the SQL database from
_SQL_FILE
folder to your newly created database (don't forget to read theHow_to_use.txt
guide). - Do some common configuration, like
.env
files, and any other configurations that you may need to configure. - Run
php artisan serve
from your working directory to see if that works smoothly.
- Open the website (e.g.
127.0.0.1:8000
). - Create an account or sign-in with the existing account.
- Click the Menu List on the navbar and select any category you like.
- Click on any food you want.
- Select the item quantity, options (if available) and message note for your order. (You can add multiple foods by repeating the process from point 4)
- Open the foodcart menu to see your order.
- Click payment to continue.
- Click Complete to finish your current invoice, or Cancel Order to cancel your current invoice and removes all the items from your foodcart.
- notes: users can't and shouldn't access the
/admin
route.
- Open the website (e.g.
127.0.0.1:8000
). - Sign-in with existing admin account.
- Admin will be redirected to
/admin
route. - Admin can add a new menu into database by clicking add item on the bottom right of the screen.
- Admin can
edit
anddelete
a menu from database by clicking on view button on the selected menu.
- notes: admin can't and shouldn't make an invoice. If you want to order some foods, use
user
's account instead.
- A guest means someone that isn't logged in as either a user or an admin.
- Guest can only open the menu categories and see the menu details (such as description, quantity, options and price) but they CANNOT perform any ordering activities.
- Guest can't and shouldn't access
/admin
route. - If a guest is trying to order a food, then they will be redirected to a login page.
- If a guest is trying to access
/admin
route, then they will also be redirected to a login page.