How ddxahmed/order works
OrderTrofy manages game-account inventory and delivers Steam Guard verification codes through a customer portal or Telegram, with a separate admin experience for operations. The principal flow is order activation, account assignment, verification request, mailbox scanning, code extraction and protected delivery. Admin capabilities include inventory and order management, CSV import, customer and mailbox administration, audit and Salla integration. The source index shows the API entry point importing core services; several feature links rely on README descriptions because their route implementations were not sampled.
Main entry points: main.py FastAPI application · worker.py Background worker · CustomerPortal.jsx Customer portal · admin Admin views
Components 26
Customer and admin UI
- Customer portal
frontend/src/pages/customer/CustomerPortal.jsx - Admin views
frontend/src/pages/admin - UI route selection
frontend/src/App.jsx - API client
frontend/src/api/client.js
API and operations
- FastAPI application
app/main.py - Authentication routes
app/api/routers/auth.py - Admin operations routes
app/api/routers - CSV import
app/services/csv_import.py
Orders and verification
- Customer access
app/services/customer.py - Inventory allocation
app/services/inventory.py - Code verification
app/services/verification.py - Background worker
app/worker.py
External integrations
- Telegram bot
app/bot.py - Mailbox providers
app/mail/imap_provider.py - Microsoft Graph mail
app/mail/microsoft.py - Salla integration
app/integrations/salla.py - Salla notifications
app/services/salla_notifications.py
Persistence and security
- Database session
app/db.py - Domain records
app/models.py - Security utilities
app/security.py - Audit logging
app/audit.py
Other components
- Customer
- Administrator
- PostgreSQL
- Mailbox services
- Salla
Connections 30
- Customer → Customer portal: uses
- Administrator → Admin views: uses
- Customer portal → UI route selection: renders through
frontend/src/App.jsx - Admin views → UI route selection: routes through
frontend/src/App.jsx - Customer portal → API client: requests API
- Admin views → API client: requests API
- API client → FastAPI application: calls API
- FastAPI application → Authentication routes: registers routes
app/main.py - FastAPI application → Admin operations routes: registers routes
app/main.py - FastAPI application → Customer access: uses
app/main.py - FastAPI application → Inventory allocation: uses
app/main.py - FastAPI application → CSV import: uses
app/main.py - Authentication routes → Security utilities: verifies credentials
app/api/routers/auth.py - Authentication routes → Audit logging: records events
app/api/routers/auth.py - FastAPI application → Database session: uses sessions
app/main.py - Database session → PostgreSQL: connects
app/db.py - Database session → Domain records: persists records
app/db.py - Customer access → Inventory allocation: reads assignments
app/services/customer.py - Customer access → Audit logging: records events
app/services/customer.py - Background worker → Code verification: processes requests
app/worker.py - Background worker → Telegram bot: delivers results
app/worker.py - Background worker → Salla notifications: polls notifications
app/worker.py - Code verification → Mailbox providers: reads messages
app/services/verification.py - Code verification → Security utilities: protects codes
app/services/verification.py - Microsoft Graph mail → Mailbox providers: shares message model
app/mail/microsoft.py - Mailbox providers → Mailbox services: reads inbox
app/mail/imap_provider.py - Salla notifications → Salla integration: uses integration
app/services/salla_notifications.py - Salla integration → Salla: connects
- Inventory allocation → Domain records: reads and writes
app/services/inventory.py - Security utilities → Domain records: protects stored secrets
app/security.py