How haraprasadgouda/subtrack-odoo works
SubTrack manages subscription setup through lifecycle operations, invoicing, payments and customer self-service. The React application routes role-specific users to management and portal screens; FastAPI registers the corresponding API domains, with SQLAlchemy-backed state. The graph preserves documented capabilities even where implementation excerpts were unavailable; those relationships are shown as unverified rather than asserted. Sampled service code confirms subscription-to-invoice and portal-to-payment behavior, while most router/service wiring was not sampled.
Main entry points: main.py FastAPI app · models Domain models · invoice_service.py Invoices, GST, PDF · subscription_service.py Subscription lifecycle
Components 20
Web client
- Role-based routes
frontend/src/App.jsx - Management screens
frontend/src/pages - Customer portal screens
frontend/src/pages/portal - API clients
frontend/src/api
API and identity
- FastAPI app
backend/app/main.py - Authentication API
backend/app/routers/auth.py - JWT and account service
backend/app/services/auth_service.py - Request and response schemas
backend/app/schemas
Subscription lifecycle
- Products and plans
backend/app/services/product_service.py - Quotation templates
backend/app/services/template_service.py - Subscription lifecycle
backend/app/services/subscription_service.py - Customer and risk
backend/app/services/contact_service.py
Billing operations
- Invoices, GST, PDF
backend/app/services/invoice_service.py - Payment recording
backend/app/services/invoice_service.py - Dunning reminders
backend/app/services/dunning_service.py - Dashboard and analytics
backend/app/services/dashboard_service.py - Portal operations
backend/app/services/portal_service.py
Persistence
- Domain models
backend/app/models - SQLite database
backend/app/core/database.py
Other components
- Admin, staff, customer
Connections 29
- Admin, staff, customer → Role-based routes: uses
frontend/src/App.jsx - Role-based routes → Management screens: routes to
frontend/src/App.jsx - Role-based routes → Customer portal screens: routes to
frontend/src/App.jsx - Management screens → API clients: requests
- Customer portal screens → API clients: requests
- API clients → FastAPI app: calls API
- FastAPI app → Authentication API: registers
backend/app/main.py - FastAPI app → Products and plans: registers routes
backend/app/main.py - FastAPI app → Quotation templates: registers routes
backend/app/main.py - FastAPI app → Subscription lifecycle: registers routes
backend/app/main.py - FastAPI app → Invoices, GST, PDF: registers routes
backend/app/main.py - FastAPI app → Dunning reminders: registers routes
backend/app/main.py - FastAPI app → Dashboard and analytics: registers routes
backend/app/main.py - FastAPI app → Portal operations: registers routes
backend/app/main.py - Authentication API → JWT and account service: delegates
backend/app/routers/auth.py - JWT and account service → Domain models: queries users
backend/app/services/auth_service.py - Subscription lifecycle → Invoices, GST, PDF: creates invoices
backend/app/services/subscription_service.py - Portal operations → Invoices, GST, PDF: records payments
backend/app/services/portal_service.py - Invoices, GST, PDF → Domain models: reads and writes
backend/app/services/invoice_service.py - Subscription lifecycle → Domain models: reads and writes
backend/app/services/subscription_service.py - Dunning reminders → Domain models: reads invoice state
backend/app/services/dunning_service.py - Portal operations → Domain models: reads portal state
backend/app/services/portal_service.py - SQLite database → Domain models: provides ORM base
backend/app/models/invoice.py - Invoices, GST, PDF → Payment recording: records
backend/app/services/invoice_service.py - Products and plans → Domain models: persists catalog
- Quotation templates → Subscription lifecycle: starts subscription
- Customer and risk → Domain models: manages contacts
- Dashboard and analytics → Domain models: aggregates metrics
- Request and response schemas → Authentication API: validates payloads
backend/app/routers/auth.py