Skip to content

zohaibtariq/laravel-tdd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel TDD API

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

Project Setup (please execute all one by one)

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

SW API LOCAL URL

http://sw.api.local/

postman collection & environment file has been added respectively

POSTMAN COLLECTION FILE (Small World API.postman_collection.json)

POSTMAN ENVIRONMENT FILE (Small World API (LOCAL).postman_environment.json)

SMALL WORLD DEV API

POSTMAN COLLECTION FILE (Small World DEV API.postman_collection.json)

NOTE

strongly suggest to use it with docker all endpoints can be seen in postman collection file both of these collections has same environment file

API DOCS

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

to generate api docs

php artisan l5-swagger:generate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published