This commit is contained in:
67
README.md
67
README.md
@@ -8,6 +8,8 @@
|
||||
[](https://fastapi.tiangolo.com)
|
||||
[](https://postgresql.org)
|
||||
[](https://docker.com)
|
||||
[](https://drone.io)
|
||||
[](https://drone.example.com/women-safety/backend)
|
||||
|
||||
## 🏗️ Архитектура
|
||||
|
||||
@@ -285,4 +287,67 @@ export DRONE_TOKEN=your-token
|
||||
|
||||
# Запуск build
|
||||
drone build promote women-safety/backend 123 production
|
||||
```
|
||||
```
|
||||
|
||||
### 📜 Дополнительные скрипты
|
||||
|
||||
**Deployment Scripts:**
|
||||
- `deploy-production.sh` - Полное развертывание в продакшен с проверками
|
||||
- `test_auth_flow.sh` - Тестирование регистрации и авторизации
|
||||
- `start_services_no_docker.sh` - Запуск сервисов без Docker
|
||||
|
||||
**Performance Testing:**
|
||||
- `tests/performance/load-test.js` - K6 нагрузочное тестирование
|
||||
- `tests/performance/stress-test.js` - K6 стресс-тестирование
|
||||
|
||||
**Quick Commands:**
|
||||
```bash
|
||||
# Полное развертывание
|
||||
./deploy-production.sh v1.2.3
|
||||
|
||||
# Тестирование API
|
||||
./test_auth_flow.sh
|
||||
|
||||
# Проверка системы
|
||||
./health-check.sh
|
||||
|
||||
# Нагрузочное тестирование
|
||||
k6 run tests/performance/load-test.js
|
||||
```
|
||||
|
||||
## 📁 Структура проекта
|
||||
|
||||
```
|
||||
women-safety-backend/
|
||||
├── .drone.yml # Drone CI/CD Pipeline
|
||||
├── deploy-production.sh # Production deployment script
|
||||
├── docker-compose.prod.yml # Production configuration
|
||||
├── docker-compose.test.yml # Testing configuration
|
||||
├── DRONE_SETUP.md # Drone setup instructions
|
||||
├── services/ # Microservices
|
||||
│ ├── user_service/ # User management & auth
|
||||
│ ├── emergency_service/ # SOS alerts & emergencies
|
||||
│ ├── location_service/ # Geolocation & tracking
|
||||
│ ├── calendar_service/ # Women's health calendar
|
||||
│ ├── notification_service/ # Push notifications
|
||||
│ └── api_gateway/ # API Gateway & routing
|
||||
├── shared/ # Shared utilities
|
||||
│ ├── config.py # Configuration management
|
||||
│ ├── database.py # Database connections
|
||||
│ └── auth.py # JWT authentication
|
||||
├── tests/ # Test suites
|
||||
│ ├── performance/ # K6 load tests
|
||||
│ └── integration/ # Integration tests
|
||||
└── scripts/ # Utility scripts
|
||||
├── start_services_no_docker.sh
|
||||
├── test_auth_flow.sh
|
||||
└── health-check.sh # System health monitoring
|
||||
```
|
||||
|
||||
## 🔗 Quick Links
|
||||
|
||||
- 📚 **[Drone Setup Guide](DRONE_SETUP.md)** - Complete CI/CD setup
|
||||
- 🚀 **[Production Deployment](deploy-production.sh)** - Zero-downtime deployment
|
||||
- 🧪 **[API Testing](test_auth_flow.sh)** - Authentication flow testing
|
||||
- 📊 **[Performance Tests](tests/performance/)** - Load & stress testing
|
||||
- 🐳 **[Docker Configs](docker-compose.prod.yml)** - Production containers
|
||||
Reference in New Issue
Block a user