STEM learning platform
Online learning platform, 2018–2019

Students follow courses split into units and lessons. A lesson plays beside the course content with its exercise one click away, and questions about it are asked, answered and voted on underneath. Staff keep courses, lessons and questions up to date in a back office.
The platform's homepage, rebuilt in code: the tabs under Discover lessons switch between subjects.

What the platform needed
The client
An education company's online learning platform for K-12 STEM, built by its in-house team.
The brief
The platform needed a student app for lessons, discussions and quizzes, a back office where staff manage courses, lessons, exercises and questions, and the APIs behind both. Khang worked on it as a web developer on the company's in-house team from January 2018 to August 2019.
What we built
- Lesson video controls and next-lecture navigation
- Exercise links from each lesson
- Discussion front end: channels, topics, questions, comments and voting
- Sign-in, registration and assigning students
- Content back office in Angular and Fuse, with shared form and API handling
- Learning APIs on Hapi, TypeORM and PostgreSQL, with Socket.IO and JWT
The course page, rebuilt in code: open and close each unit, switch to the exam list, or follow a Take quiz link down to the quiz on this page.

The student app
The player keeps the course content open next to the video: the lessons of each unit, every one with a link to its exercise. Khang worked on the player's controls, the step to the next lecture and those exercise links.
The lesson player, rebuilt in code from the designs: play, skip back or forward five seconds, change the speed, turn on captions, pick a lesson or go on to the next one.

Questions under the lesson
A student who gets stuck asks a question on the lesson. Classmates answer in comments and replies, and each comment can be voted on. Khang worked on this discussion front end, from channels and topics down to comments and voting.
The question thread beside the lesson, rebuilt in code: vote for a comment, reply to it, or post your own response.

Quizzes
A quiz opens on a welcome screen with the mascot on its rocket, moves through the questions on tabs across the top and ends in a history of past attempts with their scores.
A working quiz, rebuilt in code: start it, answer each question, then find the attempt in the quiz history.

A student's first steps
New students pick their grade and the subjects they want, then land on a dashboard with their report, the topics they follow and a medal tier, from bronze to platinum honor.
The sign-up steps, rebuilt in code: choose a grade, then subjects and topics.

The student dashboard, rebuilt in code: switch between the profile, followed topics, the skill report and the medal tiers.

The back office
Staff manage channels, courses, lessons, exercises and questions in an Angular back office built on the Fuse template. Its forms share one model that tracks what changed, resets to the saved values, asks before unsaved changes are lost and sends the API only the fields that changed. Khang's work on that model also sends a failed request to an error dialog.
The back office, rebuilt in code from its Angular and Fuse source: filter the lessons and open one, edit the lesson or question form and watch the request body list only what changed, reset it, or leave with unsaved changes and be asked first, then filter the exercises by level.
Lessons in their course and unit
Each lesson belongs to a course and to one of its lesson groups, the units students see. The list filters as you type, and a row opens that lesson's form.

The lesson form
The form asks for a name, the course, then a lesson group once a course is picked, the level, the document type and a description. The name is required and stops at 100 characters, and Save sends only the fields that changed.

Questions and their answer sheets
A question's type decides its answer sheet: one right choice, several, or a typed answer. Each question has a level and can sit in a question group.

Exercises from question groups
An exercise draws on a question group, with a set number of questions and a time limit. The list filters by level.

From the back office to the student
What staff save in the back office reaches students through the learning APIs. Rename a lesson in the lesson form and save it: the lesson player here, and the student screens further up, show the new name.
The learning APIs run on Hapi with TypeORM and PostgreSQL. JWT guards the API and its Socket.IO connection, which tells the owner of a live game session when players join or leave, a change Khang made in February 2018. In May 2018 he added push notifications to registered devices through FCM.
What the site does
- Students watch a lesson with the course content beside it and go on to the next lecture from the player.
- Lessons link to their exercises.
- Questions on a lesson gather comments and replies, and students vote on the comments.
- Staff edit courses, lessons, exercises and questions in the back office, where a form resets, warns before unsaved changes are lost and sends only the fields that changed.
- The owner of a live game session sees players join and leave.
Built with
Angular, Angular Material, Hapi, TypeORM, PostgreSQL, Socket.IO
Khang worked on the student app, the discussion front end, the content back office and the learning APIs as a web developer. Interface design by the company's designers. The screens on this page are rebuilt in code from the original designs and source.
Services on this project
