pipeline features
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-09-25 08:59:19 +09:00
parent 003950dce6
commit dc50a9858e
8 changed files with 901 additions and 37 deletions

View File

@@ -8,6 +8,8 @@
[![FastAPI](https://img.shields.io/badge/FastAPI-0.104+-green.svg)](https://fastapi.tiangolo.com)
[![PostgreSQL](https://img.shields.io/badge/PostgreSQL-15+-blue.svg)](https://postgresql.org)
[![Docker](https://img.shields.io/badge/Docker-Ready-blue.svg)](https://docker.com)
[![Drone CI](https://img.shields.io/badge/Drone-CI%2FCD-orange.svg)](https://drone.io)
[![Build Status](https://drone.example.com/api/badges/women-safety/backend/status.svg)](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