| name | devops |
| description | Generates DevOps configurations and scripts for deploying and managing |
Devops
Instructions
Environment Setup
Option 1: Docker Development (Recommended)
cp .env.example .env
docker compose up -d
docker compose exec app composer install
docker compose exec app yarn install
docker compose exec app php artisan key:generate
docker compose exec app php artisan migrate
docker compose exec app yarn dev
Option 2: Local Development
Ensure PHP 8.4+ is installed, then:
composer install
yarn install
cp .env.example .env
php artisan key:generate
php artisan migrate
composer run dev
Development Scripts
All commands should run from a Docker container. The project includes several
useful Composer scripts:
composer run dev - Start all development services (Octane, queue, logs,
Vite)
composer run ide-helper - Generate IDE helper files
composer run phpstan - Run static analysis
composer run pint - Check code style
composer run pint:fix - Fix code style issues
composer run rector - Check for code modernization opportunities
composer run rector:fix - Apply code modernization
CI/CD Pipeline
The project uses GitHub Actions with:
- Linting: PHPStan, Laravel Pint, Rector
- Testing: Pest with coverage and mutation testing
- Code Coverage: Codecov integration
- Parallel Execution: Tests run in parallel for faster feedback
Environment-Specific Notes
- Local Development: Use Docker Compose for consistent environment
- Testing: Separate PostgreSQL instance for tests
- Production: Optimized for Laravel Octane with FrankenPHP
- Debugging: Xdebug available in development, Telescope for application
debugging