Skip to content

xorenio/api.xoren.io

Repository files navigation

api.xoren.io

Backend api for xoren.io

Stack (PHART)

Setup

Local development

From the root of the project please copy the .env.example to .env

Please follow these commands

 $ docker-compose -f docker-compose.local.yml build
 $ docker-compose -f docker-compose.local.yml run --rm laravel composer install && php artisan migrate:fresh --seed
 $ docker-compose -f docker-compose.local.yml up -d

Testing

For testing please use PHPUnit via artisan

 $ docker-compose -f docker-compose.local.yml run --rm laravel php artisan test

Specific Testing

For testing specific test

 $ docker-compose -f docker-compose.local.yml run --rm laravel php artisan test --filter <class> <path>