This app is a simple online pizza store built using Laravel 7, Vue 2 and, Bootstrap. The app lets you order pizza online and have the following features:
- Select multiple pizzas
- Add/Remove pizza quantity
- Add/Remove from the checkout page
- Store the state of the cart on browser local storage
- Store the Item Type, Items and the Orders on the database
Note: At the moment, the app supports to place an order for the guest user. The sign up can be added later.
Live Link Of The App: https://protected-cliffs-88071.herokuapp.com/
Live Link Setup Uses:
- Heroku
- db4free.net (that is slower than others but easy to set up)
- Get request to fetch all items:
[site.url]/api/v1/items
- Get request to fetch a specific item:
[site.url]/api/v1/items/[id]
Note: At the moment, the app only have pizza type but later on further types can be added.
- Run following commands:
git clone https://github.com/alpharameeztech/online-pizza-store
composer install
cp .env.example .env
npm install
php artisan migrate
php artisan db:seed --class=TypeSeeder
php artisan db:seed --class=ItemSeeder
Run the following command:
docker-compose up -d
docker exec -t [container_name] bash
php artisan db:seed --class=TypeSeeder
php artisan db:seed --class=ItemSeeder
As a final step, visit http://your_server_ip in the browser