Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tqt97/laravel-vue-inertia-food-ordering
Laravel Vue Inertia: Food Ordering
https://github.com/tqt97/laravel-vue-inertia-food-ordering
laravel tailwindcss vue3
Last synced: about 17 hours ago
JSON representation
Laravel Vue Inertia: Food Ordering
- Host: GitHub
- URL: https://github.com/tqt97/laravel-vue-inertia-food-ordering
- Owner: tqt97
- Created: 2023-10-15T13:03:59.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-18T15:47:33.000Z (about 1 year ago)
- Last Synced: 2023-10-19T15:56:47.568Z (about 1 year ago)
- Topics: laravel, tailwindcss, vue3
- Language: PHP
- Homepage:
- Size: 194 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel Vue Inertia: Food Ordering Project
## Step By Step
1. **Setup: Install Breeze and ESLint**
- **Install Laravel Breeze**
```
composer require laravel/breeze
php artisan breeze:install vue
```
- **Install/Configure ESLint**
```
npm install --save-dev \
@rushstack/eslint-patch \
@vue/eslint-config-prettier \
eslint \
eslint-plugin-vue \
prettier
```
- **Configure ESLint:**
- Create a new `.eslintrc.cjs` file
- Create a new `.prettierrc.jso`n file
- Run ESLint `npm run lint`
2. **Users, Roles and Permissions**
- **Create Permissions Model:** `php artisan make:model Permission -ms`
- **Create Roles Model:**
```
php artisan make:model Role -ms
php artisan make:migration create_permission_role_table
php artisan make:migration create_role_user_table
```
- **Add Roles To User**
- **Add Admin User:** `php artisan make:seed UserSeeder`
- **Seed Database**
- **Register Auth Gates**
3. **Restaurants DB Schema**
- **Create a City Model** `php artisan make:model City -ms`
- **Create a Restaurant Model** `php artisan make:model Restaurant -m`
4. **Restaurants Index Table**
- **Seed Vendor Role**
- **Seed Vendor User**
- **Create Index View Restaurant** `php artisan make:controller Admin/RestaurantController`
5. **Create Restaurant Form**
- **Create Method in Controller**
- **Restaurant Create View Component**
- **SelectInput Component**
- **Form Submit: Validation in Form Request** `php artisan make:request Admin/StoreRestaurantRequest`
- **Store Method in Controller**
- **Sending Email Invitation to Restaurant Owner** `php artisan make:notification RestaurantOwnerInvitation`
6. **Edit Restaurant Form**
- **Edit method in Controller**
- **Edit Restaurant: Vue Component**
- **Submit Form: Controller and Validation** `php artisan make:request Admin/UpdateRestaurantRequest`
- **Display Success and Status Messages**
7. **Front-end Permissions: Show/Hide Buttons**
8. **Category/Product DB and "Menu" Item**
- **Category/Product Database Structure**
```
php artisan make:model Category -m
php artisan make:model Product -m
```
- **Adding Category/Product to Permissions**
- **Menu item "Menu"** `php artisan make:controller Vendor/MenuController`
9. **Categories Create/Edit/Delete**
```
php artisan make:controller Vendor/CategoryController
php artisan make:controller Vendor/ProductController
```
- **Category Create Form**
- **Save New Category**
- **Edit Category**
- **Delete Categories**
10. **Products Create/Edit/Delete**
- **Product Create Form**
- **Save New Product**
- **Edit Product**
11. **Public Homepage and Restaurant Page**
- **Homepage View**
- **Seed More Restaurants With Categories And Products**
- **Restaurant View**