How nou254/nou-hotspot-billing-system works
N.O.U. Hotspot Biller is a multi-tenant billing and hotspot-access platform for ISPs, their subscribers, and platform staff. Its backend exposes authenticated ISP, subscriber, and superadmin APIs alongside public signup and captive-portal endpoints; domain services and workers support billing, payments, provisioning, and reporting. The source excerpts show application startup, tenant-session resolution, and role authorization, but not the detailed wiring from frontend screens into API operations or most service implementations, so those links are not asserted.
Main entry points: main.py API application · routes.py ISP management API · payments.py Payment services · auth.py Role authorization
Components 26
User applications
- Captive portal
nou-hotspot-biller/frontend/apps/captive/src/app/page.tsx - Customer portal
nou-hotspot-biller/frontend/apps/customer/src/app/dashboard/page.tsx - ISP admin
nou-hotspot-biller/frontend/apps/isp-admin/src/app/onboarding/page.tsx - Superadmin console
nou-hotspot-biller/apps/superadmin/src/app/dashboard/page.tsx
API and access
- API application
nou-hotspot-biller/backend/src/nou/main.py - Role authorization
nou-hotspot-biller/backend/src/nou/api/deps/auth.py - Tenant context
nou-hotspot-biller/backend/src/nou/api/deps/tenant_context.py - Public signup and plans
nou-hotspot-biller/backend/src/nou/api/v1/public/routes.py - Captive access API
nou-hotspot-biller/backend/src/nou/api/v1/captive/routes.py - Subscriber portal API
nou-hotspot-biller/backend/src/nou/api/v1/customer/routes.py - ISP management API
nou-hotspot-biller/backend/src/nou/api/v1/isp/routes.py - Platform admin API
nou-hotspot-biller/backend/src/nou/api/v1/superadmin/routes.py
Billing and subscriber domains
- Payment services
nou-hotspot-biller/backend/src/nou/services/payments.py - Subscriber lifecycle
nou-hotspot-biller/backend/src/nou/services/lifecycle.py - Network provisioning
nou-hotspot-biller/backend/src/nou/services/provisioning.py
Platform operations
- Reports and analytics
nou-hotspot-biller/backend/src/nou/services/reporting.py - Background workers
nou-hotspot-biller/backend/src/nou/workers/tasks.py - Payment and network adapters
nou-hotspot-biller/backend/src/nou/adapters/payment.py
Persistence and infrastructure
- Tenant sessions
nou-hotspot-biller/backend/src/nou/core/tenant_session.py - PostgreSQL
nou-hotspot-biller/backend/src/nou/core/database.py - Redis
nou-hotspot-biller/backend/src/nou/core/redis.py - JWT security
nou-hotspot-biller/backend/src/nou/core/security/jwt.py
Other components
- Hotspot visitor
- Subscriber
- ISP staff
- Platform staff
Connections 27
- API application → Public signup and plans: routes via
- API application → Captive access API: routes via
- API application → Subscriber portal API: routes via
- API application → ISP management API: routes via
- API application → Platform admin API: routes via
- API application → PostgreSQL: configures
nou-hotspot-biller/backend/src/nou/main.py - API application → Redis: closes
nou-hotspot-biller/backend/src/nou/main.py - API application → Role authorization: uses
- API application → Tenant context: uses
- Role authorization → JWT security: checks claims
nou-hotspot-biller/backend/src/nou/api/deps/auth.py - Tenant context → Tenant sessions: opens session
nou-hotspot-biller/backend/src/nou/api/deps/tenant_context.py - Tenant context → PostgreSQL: looks up tenant
nou-hotspot-biller/backend/src/nou/api/deps/tenant_context.py - ISP management API → Role authorization: requires roles
nou-hotspot-biller/backend/src/nou/api/v1/isp/routes.py - Platform admin API → Role authorization: requires roles
nou-hotspot-biller/backend/src/nou/api/v1/superadmin/routes.py - Public signup and plans → Captive access API
- Subscriber portal API → Payment services: delegates
- ISP management API → Subscriber lifecycle: delegates
- ISP management API → Network provisioning: delegates
- ISP management API → Reports and analytics: delegates
- Background workers → Payment services: processes
- Payment services → Payment and network adapters: uses
nou-hotspot-biller/backend/src/nou/services/payments.py - Payment services → Tenant sessions: uses
- Reports and analytics → Tenant sessions: uses
- Captive portal → Hotspot visitor: serves
- Customer portal → Subscriber: serves
- ISP admin → ISP staff: serves
- Superadmin console → Platform staff: serves