- Create and delete products and categories via CLI
- Browse products through a paginated product listing
- Sort products by name or price
- Filter products by category
- Create new products through a web interface
-
Navigate to the backend directory:
cd backend -
Install dependencies:
composer install -
Copy the
.env.examplefile to.envand configure your database settings. -
Generate an application key:
php artisan key:generate -
Run migrations:
php artisan migrate php artisan db:seed -
Start the development server:
php artisan serve
-
Navigate to the frontend directory:
cd frontend -
Install dependencies:
npm install -
Start the development server:
npm start
-
Create a category:
php artisan category:create {name} {parent_id?} -
Delete a category:
php artisan category:delete {id} -
Create a product:
php artisan product:create {name} {description} {price} {image?} -
Delete a product:
php artisan product:delete {id}