How ulric-r/cooptransport works
CoopTransport is a cooperative transport-management system: passengers and staff use mobile or web clients to access trips, reserve seats, and manage operations; the backend exposes the API, with separate real-time tracking and queue channels. The README also identifies simulated payments, notifications, cooperative fleet management, and ranking as product capabilities. The sampled backend entry point confirms router and WebSocket registration, while the sampled clients show API access; implementation details for most services and workers were not sampled, so uncertain internal links are omitted.
Main entry points: main.py API application · frontend/App.tsx Mobile app · src/App.tsx Web app · baseQuery.ts Mobile API access
Components 23
User clients
- Mobile app
frontend/App.tsx - Web app
frontend_web/src/App.tsx - Mobile API access
frontend/src/store/api/baseQuery.ts - Web API client
frontend_web/src/api/client.ts
REST API
- API application
backend/main.py - Authentication
backend/app/routers/auth.py - Coops and fleet
backend/app/routers/cooperatives.py - Trips
backend/app/routers/trips.py - Reservations
backend/app/routers/reservations.py - Waiting queue
backend/app/routers/waiting_queue.py - Transactions
backend/app/routers/transactions.py - GPS tracking
backend/app/routers/tracking.py - Alerts and complaints
backend/app/routers/alerts.py - Ranking
backend/app/routers/ranking.py - PostgreSQL store
backend/app/core/database.py
Realtime and jobs
- Tracking WebSocket
backend/app/websockets/tracking_ws.py - Queue WebSocket
backend/app/websockets/queue_ws.py - Background workers
backend/app/workers - SMS service
backend/app/services/sms_service.py
Scoring and analysis
- Ranking service
backend/app/services/ranking_service.py - ML endpoints
backend/app/routers/ml.py - ML and NLP
processing/ml
Other components
- Passengers and staff
Connections 18
- Passengers and staff → Mobile app: use
- Passengers and staff → Web app: use
- Mobile app → Mobile API access: request via
- Web app → Web API client: request via
- Mobile API access → API application: call API
- Web API client → API application: call API
- API application → Authentication: mounts
- API application → Coops and fleet: mounts
- API application → Trips: mounts
- API application → Reservations: mounts
- API application → Waiting queue: mounts
- API application → Transactions: mounts
- API application → GPS tracking: mounts
- API application → Alerts and complaints: mounts
- API application → Ranking: mounts
- API application → ML endpoints: mounts
- API application → Tracking WebSocket: registers
- API application → Queue WebSocket: registers