💅 FrontEnd : Css, Bootstrap, Vue
🛠 Backend : PHP 7.4 | Laravel 8
💾 Database : MySql
☁️ Deployment : Github
composer install
copy .env.example .env
php artisan key:generate
php artisan migrate
php artisan serve --port=3000
php artisan storage:link
now you can visit localhost:3000 and see the project
All the following commands are artisan ones, which means you have to run the command like that: php artisan command
Command | Description | Arguments |
---|---|---|
categories:show | Shows all the categories | |
category:create | Creates a new category | --name --parentId |
category:delete | Deletes a category by a given ID | --categoryId |
products:show | Shows all the products | |
product:create | Created a new product | --name--description --categoryId --price --image |
product:delete | Deletes a product by a given ID | --productId |
test | Tests the product uploading | |
make:service | Creates a new service | --modelName |
php artisan category:create "Programming" 5
In this example, 5 is the id of the parent category Books.
Let's suppose we want to see all the categories in the CLI
php artisan categories:show
The Output for this will be:
ID | CATEGORY | PARENT |
---|---|---|
1 | Shirts | null |
2 | Pants | null |
5 | Books | 5 |
- Login: localhost:3000/login
- Register: localhost:3000/register
- Browse/create/delete categories: localhost:3000/categories
- Browse/create/delete products: localhost:3000/products