first commit

This commit is contained in:
ExtraNetwork
2026-05-12 17:04:54 +03:00
commit e5c4b6aa13
1425 changed files with 284735 additions and 0 deletions

51
README.md Normal file
View File

@@ -0,0 +1,51 @@
# 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 |