Consolidate 3 separate applications (reports-app, data-entry-app, telegram-bot) into a unified
architecture with single backend and frontend:
Backend Changes:
- Unified FastAPI backend at backend/ with modular structure
- Modules: reports, data_entry, telegram in backend/modules/
- Centralized config.py and main.py with all routers registered
- Single worker mode (--workers 1) for Telegram bot compatibility
- Shared Oracle connection pool and JWT authentication
- Unified requirements.txt and environment configuration
Frontend Changes:
- Single Vue.js SPA with module-based routing
- Unified frontend at src/ with modules in src/modules/{reports,data-entry}/
- Shared components and stores in src/shared/
- Error boundaries for module isolation
- Dual API proxy in Vite for module communication
Infrastructure:
- New unified startup scripts: start-prod.sh, start-test.sh, start-backend.sh
- Environment templates: .env.dev.example, .env.test.example, .env.prod.example
- Updated deployment scripts for Windows IIS
- Simplified SSH tunnel management
Documentation:
- Comprehensive CLAUDE.md with architecture overview
- Module-specific docs in docs/{data-entry,telegram}/
- Architecture decision records in docs/ARCHITECTURE-DECISIONS.md
- Deployment guides consolidated in deployment/windows/docs/
This migration reduces complexity, improves maintainability, and enables easier
deployment while maintaining all existing functionality.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
94 lines
3.7 KiB
Plaintext
94 lines
3.7 KiB
Plaintext
# ============================================================================
|
|
# ROA2WEB Unified Backend - Dependencies
|
|
# ============================================================================
|
|
# Merged from reports-app, data-entry-app, and telegram-bot
|
|
# All three modules now run in a single backend process
|
|
|
|
# ============================================================================
|
|
# FASTAPI CORE (Common to all modules)
|
|
# ============================================================================
|
|
fastapi>=0.109.0
|
|
uvicorn[standard]>=0.27.0
|
|
python-multipart>=0.0.6
|
|
pydantic>=2.5.3
|
|
pydantic-settings>=2.1.0
|
|
email-validator>=2.1.0
|
|
|
|
# ============================================================================
|
|
# AUTHENTICATION (Shared across all modules)
|
|
# ============================================================================
|
|
PyJWT>=2.8.0
|
|
python-jose[cryptography]>=3.3.0
|
|
|
|
# ============================================================================
|
|
# DATABASE - ORACLE (Shared: Reports + Data Entry nomenclatures + Auth)
|
|
# ============================================================================
|
|
oracledb>=2.0.1
|
|
|
|
# ============================================================================
|
|
# DATABASE - SQLITE (Data Entry + Telegram + Reports Cache)
|
|
# ============================================================================
|
|
aiosqlite>=0.19.0
|
|
|
|
# ============================================================================
|
|
# DATABASE - SQLMODEL + ALEMBIC (Data Entry only)
|
|
# ============================================================================
|
|
sqlmodel>=0.0.14
|
|
sqlalchemy[asyncio]>=2.0.25
|
|
alembic>=1.13.1
|
|
|
|
# ============================================================================
|
|
# HTTP CLIENT (Shared)
|
|
# ============================================================================
|
|
httpx>=0.27.0
|
|
|
|
# ============================================================================
|
|
# UTILITIES (Shared)
|
|
# ============================================================================
|
|
python-dotenv>=1.0.0
|
|
python-dateutil>=2.8.2
|
|
|
|
# ============================================================================
|
|
# FILE HANDLING (Data Entry)
|
|
# ============================================================================
|
|
aiofiles>=23.2.1
|
|
Pillow>=10.2.0
|
|
|
|
# ============================================================================
|
|
# REPORTS MODULE - Exports (Excel, PDF)
|
|
# ============================================================================
|
|
openpyxl>=3.1.0
|
|
fpdf2>=2.7.0
|
|
|
|
# ============================================================================
|
|
# DATA ENTRY MODULE - OCR Dependencies
|
|
# ============================================================================
|
|
# PaddleOCR for receipt text extraction
|
|
paddleocr>=2.7.0
|
|
paddlepaddle>=2.5.0
|
|
opencv-python>=4.8.0
|
|
pytesseract>=0.3.10
|
|
pdf2image>=1.16.0
|
|
numpy>=1.24.0
|
|
|
|
# ============================================================================
|
|
# TELEGRAM MODULE - Bot SDK
|
|
# ============================================================================
|
|
python-telegram-bot>=20.7
|
|
|
|
# ============================================================================
|
|
# TELEGRAM MODULE - Email (SMTP for 2FA)
|
|
# ============================================================================
|
|
aiosmtplib>=3.0.0
|
|
|
|
# ============================================================================
|
|
# MONITORING (Optional - Telegram module)
|
|
# ============================================================================
|
|
# sentry-sdk>=1.40.0 # Uncomment if needed
|
|
|
|
# ============================================================================
|
|
# TESTING
|
|
# ============================================================================
|
|
pytest>=8.0.0
|
|
pytest-asyncio>=0.23.3
|