Learning Management System

A virtual classroom app for Android and iOS. Flutter with BLoC on the phone, ASP.NET Core 3 and SQL Server behind it, REST for course data and WebSocket for live classes.

Full Stack Developer · 2019 - 2021 · Education

Tech: ASP.NET Core 3, EF Core 3, Flutter, BLoC, SQL Server, REST API, WebSocket

The problem

Classes moved online and students needed to attend from their phones. The app had to run live classrooms in real time and also handle enrolment, lessons and progress tracking.

The approach

An ASP.NET Core 3 backend with EF Core 3 on SQL Server, exposing REST for course data and a WebSocket hub for live sessions. The Flutter app uses BLoC, and its streams map well onto WebSocket events.

Outcomes

  • Live virtual classrooms over WebSocket on Android and iOS
  • REST for CRUD, WebSocket only for live classroom events
  • Reconnect with resume, so a student who drops mid-class gets the session back

What it is

A learning management system for virtual classrooms: a Flutter mobile app on top of an ASP.NET Core 3 API. Live classroom sessions run over WebSocket, and course and content management goes over REST.

What it had to do

Education moved online and students needed to attend classes from their phones. The system had to provide:

  • live virtual classrooms with real-time interaction
  • course enrolment, lessons and progress tracking
  • a responsive app on Android and iOS

Architecture

flowchart LR
  subgraph Mobile[Flutter App - BLoC]
    UI[Screens]
    BLOC[BLoC / Streams]
  end
  API[ASP.NET Core 3 API]
  WS[WebSocket Hub]
  DB[(SQL Server)]

  UI --> BLOC
  BLOC -->|REST| API
  BLOC <-->|WebSocket| WS
  API --> DB
  WS --> DB

How it's built

  • Backend: ASP.NET Core 3 with EF Core 3 on SQL Server for courses, users, enrolments and progress.
  • Realtime: a WebSocket hub runs the live classrooms. Presence, messages and session events are pushed to connected clients.
  • Mobile: Flutter with the BLoC pattern. BLoC streams line up naturally with WebSocket events, which keeps the UI predictable.
  • REST handles request/response CRUD, and WebSocket only carries the live classroom channel.

A live classroom session

sequenceDiagram
  participant S as Student App
  participant WS as WebSocket Hub
  participant T as Teacher App

  S->>WS: Join session
  WS-->>T: Student joined
  T->>WS: Send message / action
  WS-->>S: Broadcast to participants
  S->>WS: Leave session
  WS-->>T: Student left

Problems and fixes

  • Dropped connections on mobile networks. I added reconnect with resume, so a student who rejoins mid-class gets their session state back.
  • Mixing sync and async data. CRUD stays on REST and only live events go over WebSocket, so no single channel gets overloaded.

Result

  • Real-time virtual classrooms on Android and iOS.
  • A clean split between REST for CRUD and WebSocket for live events.
  • A reactive UI driven by BLoC streams mapped to server events.