Files
api-extranetwork/README.md
ExtraNetwork e5c4b6aa13 first commit
2026-05-12 17:04:54 +03:00

52 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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 |