A simple product discount api implementation
- Laravel - PHP web framework
This project runs on Laravel 10 and requires PHP 8.1+ .
- git clone Laravel Discount API Implementation
- Run
composer install
to install packages . - Copy .env.example file, create a .env file if not created and edit database credentials there (MYSQL / POSTGRES).
- Run
php artisan migrate
to run database migrations. - Run
php artisan db:seed
to populate products. - Run
php artisan serve
to start the server (Ignore if using valet) . - Run
php artisan test
to run tests (set up sqlite or edit .env.testing db connection variables).