This is a showcase (test) project to show my skills related to TDD (test driven development with phpunit), API with laravel, API documentation, Caching, Search engine, 3rd Party API integration, Authentication (sanctum) docker and MVC + repository pattern
git clone https://github.com/zohaibtariq/swapi.dev
cd swapi.dev
composer install
mentioned below command is IMPORTANT - DO NOT SKIP IT
php artisan config:clear & php artisan cache:clear && php artisan route:clear && php artisan view:clear
php artisan migrate
OR
php artisan migrate:fresh
php artisan db:seed
php artisan test
OR
./vendor/bin/phpunit --configuration phpunit.xml
http://sw.api.local/
POSTMAN COLLECTION FILE (Small World API.postman_collection.json)
POSTMAN ENVIRONMENT FILE (Small World API (LOCAL).postman_environment.json)
POSTMAN COLLECTION FILE (Small World DEV API.postman_collection.json)
strongly suggest to use it with docker all endpoints can be seen in postman collection file both of these collections has same environment file
endpoint for api docs is
http://sw.api.local/api/docs
Note Authorize bearer token value at api/docs must be in mentioned below format
Bearer TOKEN_YOU_HAVE_AFTER_LOGIN
Bearer 8|331SmKaJdwMosIB02J14ZkgssdEKitUD4IVqDJVi
php artisan l5-swagger:generate