Simple example Laravel 5.7 app to calculate taco checkout time using a VueJS 2 front end calling Laravel API endpoints.
Simple example Laravel app to calculate taco checkout time using a VueJS front end calling Laravel API endpoints. It's Taco Tuesday, and there is a line of people who need tacos, and they need to know when. Calculate the total time required for all the customers to place their order!
Taco Time Features |
---|
Built on Laravel 5.7 |
Built on Bootstrap 4 |
Front End Uses VueJs and VueDraggable |
Full Unit Test Coverage with PHPUnit |
- Run
git clone https://github.com/jeremykenedy/taco-time.git taco-time
- From the projects root run
cp .env.example .env
- Run
composer update
from the projects root folder - From the projects root folder run
php artisan key:generate
- Compile the front end assets with yarn or npm.
- From the projects root folder run
php artisan serve
- Run
git clone https://github.com/jeremykenedy/taco-time.git taco-time
- From the projects root run
. taco-install.sh
- Open your browser to
http://127.0.0.1:3000/
- From the projects root folder run
yarn install
- From the projects root folder run
yarn run dev
oryarn run production
- You can watch assets with
yarn run watch
- From the projects root folder run
npm install
- From the projects root folder run
npm run dev
ornpm run production
- You can watch assets with
npm run watch
+----------+--------------+----------+---------------------------------------------------+------------+
| Method | URI | Name | Action | Middleware |
+----------+--------------+----------+---------------------------------------------------+------------+
| GET|HEAD | / | | App\Http\Controllers\HomeController@index | web |
| POST | api/tacotime | tacotime | App\Http\Controllers\OrderController@getlineTimes | api |
+----------+--------------+----------+---------------------------------------------------+------------+
Taco Time
├── app
│ └── Http
│ └── Controllers
│ └── OrderController.php
├── package.json
├── public
├── resources
│ ├── js
│ │ ├── app.js
│ │ └── components
│ │ └── TacoTime.vue
│ └── views
│ ├── home.blade.php
│ └── layouts
│ └── app.blade.php
├── routes
│ ├── api.php
│ └── web.php
├── tests
│ └── Unit
│ └── LineTimeTest.php
└── webpack.mix.js
Taco Time is licensed under the MIT license. Enjoy!