This is a API first approach application built to manage a petshop business. These API's can be consumed by any front end tech stack be it in react, angular or offcourse any mobile app. Currently the Application is built over Laravel Framework version 9, and it was last tested on laravel version 9.22.1
https://github.com/rohu2187/petshop
https://petshop.rohutech.com/api/documentation
- Migrations
- Seeders
- Facades
- Service Providers
- Middleware
- Created Service for JWT
- Implemented Feature Tests
- Independent Request classes for each routes
- Swagger Documentation to see the API's in action
- To generate Swagger Documentation - https://github.com/DarkaOnLine/L5-Swagger
- To create JWT tokens - https://github.com/lcobucci/jwt
- Get the application files
- download the zip or clone it from github - https://github.com/rohu2187/petshop
- put it at
<your-sites-or-htdocs-folder-path>
from where you can load the application
- Create a DB in mysql DB with name "petshop"
- run
php artisan migrate
- run
php artisan db:seed
- run
php artisan serve
- To access Swagger Documentation on local
- can be accessed at
<application-url>
/api/documentation, - so if are using
php serve
, the url would be http://127.0.0.1:8000/api/documentation
- can be accessed at
- Run Individual Tests
vendor/bin/phpunit --filter test_product_list
vendor/bin/phpunit --filter test_product_view
vendor/bin/phpunit --filter test_product_create
vendor/bin/phpunit --filter test_product_update
vendor/bin/phpunit --filter test_product_delete
vendor/bin/phpunit --filter test_user_register
vendor/bin/phpunit --filter test_user_login