open FBIS TAKE HOME TEST.pdf
Clone the repository git clone https://github.com/bbtests/fbis
copy .env.example to .env and update the details:
cp .env.example .env
Install packages and run:
composer install && ./vendor/bin/sail up -d
run:
docker compose up -d
run migration & seeding default configuration in the app container terminal (Only once)
php artisan migrate:fresh --seed && php artisan key:generate
import postman_collection.json into postman to see the API documentation
Also at:
https://www.postman.com/bbtests/workspace/public/collection/14901487-d7c47f19-8b5f-4cd7-bd9e-eed0cf594870
for BAP_API_* values, check https://documenter.getpostman.com/view/25151909/2sA3JKc29C
for SHAGO_API_* values, check https://documenter.getpostman.com/view/19961344/2sA3JKc1qV
NB: BAP gives Insufficient balance when agent balance is low while Insufficient user balance when application user balance is low.