In this project there is an implementation of Laravel shopping cart api end points.
- Laravel 9.x requires a minimum PHP version of 8.0
- MYSQL DB
- Clone or download the code.
- cd to your downloaded code
cd vikas_case_study
- run
composer install
- rename .env.example to .env
- run
php artisan key:generate
- Setup your database into .env file
- Run migrations. Migrations can be found within database/migrations.
php artisan migrate
- Generate passport keys.
php artisan passport:install --force
- Run the project.
php artisan serve
- This is it, you can now open postman and start testing api endpoints.
-
Running test cases.
.\vendor\bin\phpunit (windows machine)
The Laravel framework is open-sourced software licensed under the MIT license.