This is a Laravel project that for Scnip Test 2024
These instructions will guide you on how to clone and run the project on your local machine.
Make sure you have the following installed on your system:
- PHP (>= 8.1)
- Composer
- Node.js and npm (for managing frontend assets)
- MySQL or another database of your choice
-
Clone the repository:
git clone https://github.com/Davematics/ScnipTest.git``
-
Product Routes
GET /api/product
-
To view products sorted by sales per view:
GET /api/product?sort_by=sales_per_view
-
To view products sorted by price:
GET /api/product?sort_by=price