{"id":15106114,"url":"https://github.com/monarul007/beautybooth","last_synced_at":"2026-02-04T08:43:13.116Z","repository":{"id":257369944,"uuid":"857826498","full_name":"Monarul007/beautyBooth","owner":"Monarul007","description":"This repository contains a Laravel-based project completed as part of an interview task for the Web Developer Backend (Laravel) position at Beauty Booth Bangladesh. It includes models, migrations, relationships, seeders, and a REST API to manage products and categories with sorting options like best-selling, top-rated, and price filters.","archived":false,"fork":false,"pushed_at":"2024-09-16T08:32:36.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T13:29:04.535Z","etag":null,"topics":["api","ecommerce","laravel","rest-api"],"latest_commit_sha":null,"homepage":"https://beautybooth.com.bd/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Monarul007.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-15T17:53:22.000Z","updated_at":"2024-09-16T08:38:33.000Z","dependencies_parsed_at":"2024-09-16T10:05:47.164Z","dependency_job_id":"2781bf5b-1016-4a39-aa3a-8264f1e262e5","html_url":"https://github.com/Monarul007/beautyBooth","commit_stats":null,"previous_names":["monarul007/beautybooth"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Monarul007/beautyBooth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monarul007%2FbeautyBooth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monarul007%2FbeautyBooth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monarul007%2FbeautyBooth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monarul007%2FbeautyBooth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Monarul007","download_url":"https://codeload.github.com/Monarul007/beautyBooth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monarul007%2FbeautyBooth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266071519,"owners_count":23871940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","ecommerce","laravel","rest-api"],"created_at":"2024-09-25T21:00:40.267Z","updated_at":"2026-02-04T08:43:13.081Z","avatar_url":"https://github.com/Monarul007.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Tasks for Laravel Interview\n\nThis is a Laravel app to manage products and categories. It includes sorting products by best selling, top-rated, and price.\n\n## Features\n\n- Sort products by:\n  - **Best Sell**: Based on the number of orders.\n  - **Top Rated**: Based on product reviews.\n  - **Price**: Sort from high to low or low to high.\n\n## Models\n\n- **Product**: `id`, `name`, `slug`, `price`\n- **Category**: `id`, `name`, `slug`, `parent_id`\n- **ProductCategory**: `product_id`, `category_id`\n- **Order**: `id`, `grand_total`, `shipping_cost`, `discount`, `user_id`\n- **OrderDetail**: `id`, `product_id`, `order_id`, `unit_price`, `quantity`\n- **ProductReview**: `id`, `product_id`, `user_id`, `comment`, `rating`\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/Monarul007/beautyBooth.git\n   ```\n\n2. Install dependencies:\n   ```bash\n   composer install\n   ```\n\n3. Set up `.env`:\n   ```bash\n   cp .env.example .env\n   php artisan key:generate\n   ```\n\n4. Run migrations and seed the database:\n   ```bash\n   php artisan migrate --seed\n   ```\n\n5. Start the server:\n   ```bash\n   php artisan serve\n   ```\n\n## API\n\n**Endpoint**: `/category/{slug}/products`\n\n**Method**: `GET`\n\n**Sort Options**:\n- `?sort=best_sell`\n- `?sort=top_rated`\n- `?sort=price_high_to_low`\n- `?sort=price_low_to_high`\n\nExample: `/category/electronics/products?sort=best_sell`\n\n## Seeder\n\nSeeder uses Laravel factories to add random products, categories, and reviews efficiently.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonarul007%2Fbeautybooth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonarul007%2Fbeautybooth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonarul007%2Fbeautybooth/lists"}