This repository includes an example implementation of a modern online learning platform.
The code lives under online_learning_platform/ and consists of a FastAPI backend,
a small React frontend, deployment scripts, and documentation. The backend exposes
basic API endpoints for authentication, user management, courses, and more using
in-memory data structures. The backend exposes a create_app() function that
constructs the FastAPI application with all routers attached. Additional modules
cover assignments, assessments, analytics, messaging, notifications and
payments. The project includes Docker and Kubernetes manifests as well as a
minimal Terraform configuration.
A simple Python project that prints a greeting.
Run the script:
python main.pyInstall the requirements and run tests with pytest:
pip install -r requirements.txt
pytest- User Login & Device Verification (OTP, Device, Location)
- Service Discovery with Availability & Capacity Validation
- Booking Creation with Price & Mode Locking
- Auto-Confirmation & Reassignment Logic
- Visit Shop – Digital Queue with No-Show Handling
- Home Service – Dispatch, Reassign & Delay Handling
- Payment Handling (Pay Now / Pay After Work with Trust Engine)
- Service Start Verification (OTP + GPS)
- Service Execution with Offline Proof Support
- Network Failure Reconciliation & Conflict Resolution
- Service Completion (OTP End + Auto-Close Safety Net)
- Escrow Settlement, Commission, GST & Invoice Generation
- Dispute, Appeals & Evidence-Based Resolution
- Continuous Trust, Risk & Abuse Detection Engine
- Shop Controls (Queue, Pricing, Capacity, Staff Stats)
- Staff App Operations (Jobs, Navigation, Earnings)
- Emergency, Force-Close & Refund Scenarios
- Admin, Audit, Fraud & Compliance Operations
- Event-Driven, Offline-First, Crash-Safe Architecture