This Laravel web application offers product management and API services for backend operations.
These instructions will guide you through setting up the project on your local machine.
Ensure you have the following installed:
- PHP >= 8.2
- Composer
- A relational database (e.g., MySQL)
Follow these steps to get your development environment running:
-
Clone the Repository
git clone git@github.com:NikaIlir/product-manager.git cd product-manager
-
Install PHP Dependencies
composer install
-
Environment Configuration
Create a copy of .env.example and name it .env, then configure your environment settings.
cp .env.example .env
-
Generate Application Key
php artisan key:generate
-
Database Setup
Create a database for the application and update the .env file with the database credentials. Then run the migrations and seeders.
php artisan migrate --seed
-
Import Products
Execute this custom command to import products from Fake Store API.
php artisan app:import-products
-
Run the Application
php artisan serve
Your application will be running at http://localhost:8000.
The API documentation is available at http://localhost:8000/api/documentation
. This documentation provides detailed information about the available endpoints, request formats, and expected responses.
To run the automated tests for this system:
php artisan test