# api.extranetwork.com Laravel 5.x tabanlı ExtraNetwork API backend. ## Gereksinimler - PHP 7.3 - MySQL 8.0 - Docker & Docker Compose - Composer 2.2 ## Kurulum ```bash # Bağımlılıkları kur composer install # .env dosyasını oluştur cp .env.example .env php artisan key:generate # Veritabanı migrate php artisan migrate ``` ## Docker ile Çalıştırma ```bash docker compose up -d ``` Uygulama `http://localhost:8073` adresinde çalışır. ## CI/CD Drone CI pipeline otomatik olarak: 1. `composer install` çalıştırır 2. PHPUnit testlerini çalıştırır 3. Docker image build edip Gitea registry'e push eder 4. SSH ile sunucuya deploy eder ### Drone Secrets (Ayarlanması gerekenler) | Secret | Açıklama | | ---------------- | --------------------------- | | `GITEA_USER` | Gitea kullanıcı adı | | `GITEA_TOKEN` | Gitea access token | | `DEPLOY_HOST` | Deploy sunucusu IP/hostname | | `DEPLOY_USER` | SSH kullanıcısı | | `DEPLOY_SSH_KEY` | SSH private key |