install
composer install
create .env
php artisan key:generate
php artisan storage:link
php artisan migrate
php artisan db:seed
npm install
npm run build
php artisan serve
///////////////////////////////////////////////////////////////////////////////////////////////////////////
A brief description of what this project does and who it's for
coded using laravel 10 & Vue 3
Front-end info
using vue3 with vue-router to create a Single page APP
Axios TO DEAL with REST API
Bootstrap 5
vue 3 composition API with <script setup>
you will find the front-end file in \CreateProductChallenge\resources\js
with components , Pages , Composable Folders
with 3 routes / home && /products/create && 404 PageNotFound
important used vue components : CreateProductForm && Product && ProductsList
--> vue files already compiled using npm run build
GET /api/products/ POST /api/products/---> PARAMETERS (name, description , price , image , category)
DELETE /api/products/---> PARAMETERS ( id )
GET /api/productsOfCategories---> PARAMETERS ( category )
GET /api/categories/php artisan db:seed
app\Http\Controllers\API\ProductContoller.php
app\Http\Controllers\API\CategoryController.php
app\Models\Product.php
app\Models\Category.php
app\Repositories\CategoryRepository.php
app\Repositories\ProductRepository.php
\app\Http\Requests\ProductRequest.php
\app\Http\Resources\ProductResource.php
\public\storage\ProductsImages
\app\Console\Commands\CreateProduct.php
php artisan test