- Laravel - PHP Framework.
- OpenSwoole - Async solution.
- FrankenPHP - Async server.
- Laravel Horizon - Redis queue manager.
- Clone repository (
git clone https://github.com/Kwarcek/laravel-api-boilerplate
) - Go to project directory (
cd laravel-api-boilerplate
) - Copy
.env.example
file to.env
(copy .env.example .env
) - Build docker (and allow file-sharing) (
docker compose up -d
) - Open container with bash (
docker exec dc-php bash
) - Install node package manager (
npm install
) - Install composer (
composer install
) - Generate Laravel app key (
php artisan key:generate
) - Restart services (
supervisorctl restart all
) - Deploy application (
php artisan app:deploy
)
- The application will be available at URL http://localhost:8093/
- Docker-compose.yml is build for local environment
Once you've written tests, you may run them using phpunit ./vendor/bin/phpunit
In addition to the phpunit command, you may use the test Artisan command to run your tests. The Artisan test runner provides verbose test reports in order to ease development and debugging: php artisan test