Skip to content
shipped

Full-Stack Angular and Node.js at an E-Learning Company

German for patient-care staff: an Angular web app for learners and admins, a Node.js API that also served the mobile apps, a live monitoring system for managers, and tests modernized with Jest.

Managers couldn't see how their employees were actually learning, and content updates had to reach every user before they could keep practicing.

role:
Full-stack developer: the Angular web app, about 80% of the Node.js API behind every client, and the managers' monitoring system
stack:
Angular · Node.js · Express · TypeScript · Prisma · PostgreSQL · Java · Spring Boot · Grafana · Jest · Jasmine · GitLab
when:
2022–2023
published:
Workplace language-learning product: architecture Learners work through the exercise and level flow in either the wrapped Angular web app or the Flutter apps for iOS and Android. Managers and admins use only the web app, where they read statistics tables on usage, time and answers and set up the mobile apps. Update notifications announce new questions, answers and levels, and both clients are blocked until updated. Both clients run on one Node.js API in TypeScript that serves content, records results, computes statistics and reports the current content version. Learners exercise & level flow Managers & admins statistics · setup web app only Update notifications new questions · answers · levels Angular web app (wrapped) learning-flow components TypeScript · Jest + Jasmine blocked until updated Flutter apps · iOS, Android blocked until updated Node.js API content · results statistics current content version
TypeScript on both layers: learners use the wrapped Angular web app or the Flutter apps, managers and admins use the web app, and every client runs on one Node.js API that serves content, records results, and reports which content version is current. · scroll sideways to see all of it

Problem & constraints

At an e-learning company, the product taught German for patient care to the staff of hospitals, medical practices and elder-care homes: learners practiced in the apps, and their managers needed to see what that practice amounted to, not just whether people were succeeding, but how hard they were trying.

The team was small: two developers. I worked directly with the clients and reported to a non-technical manager. I built the Angular web app, about 80% of the Node.js API (a developer before me wrote the rest) and the monitoring system for managers; the other developer built the Flutter apps for iOS and Android on top of that API. I helped on the Flutter side, but that work was theirs. With a team that small, there was no dedicated CI/CD pipeline (version control ran on GitLab), and every choice had to be pragmatic enough for two people to maintain.

One constraint mattered more than the rest: the learning content itself (questions, answers, levels) changed with releases, so every learner had to be on the current version to keep practicing, and the clients and the backend had to agree on what “current” meant.

Architecture

The web app was an Angular SPA, wrapped for installation, on top of a Node.js API. Both were written in TypeScript, so one language and much the same way of thinking applied from the UI to the server. Learners used it or the Flutter apps. Managers and admins used only the web app, which also set up, controlled and administered the mobile apps.

On the frontend, the core was 14 reusable components built from the Figma designs: the exercise, answer, and progress building blocks a learning flow is assembled from. For managers, a monitoring system that I built in Java with Spring Boot, with its own database and Grafana, showed per employee how often and how long they practiced, how many days they passed, their answer times and their correct-versus-wrong answers, exportable for any time range.

On the backend, the Node.js API (Express, with Prisma over PostgreSQL) delivered the learning content to every client and recorded what learners did with it: answers given, time spent, sessions completed. Every answer, with the time it took, went on live to the monitoring service, which turned the raw results into the per-employee figures the managers saw, so the frontend received ready-to-render data rather than doing the counting itself.

The layers met at the update mechanism: new releases were announced through the native notification channel, the API exposed the current content version, and once an update was out, learners could not continue past their current session, on web or mobile, until they had updated. The server enforced it: older app versions were refused on the protected routes, whatever the client did. The decisions behind it are logged below, each with the alternative it beat.

Angular and Node.js after Vue

I came to this role from years of Vue with only brief Angular exposure, and the first surprise was structural: so many declarations, spread across separate files, for every single component, where Vue gives you the whole component in one file. But I came to appreciate the discipline. Angular’s enforced structure keeps a codebase consistent, and that matters when a very small team has to maintain it. Working in TypeScript on both the Angular client and the Node.js server added a second benefit: one language, and no context switch when a feature crossed from UI to API. I can work productively in that model and still prefer Vue’s ergonomics, and I’d want the same flexibility from any team I lead.

Outcomes

Managers got what they were missing: per-employee visibility into usage frequency, time invested, and correct-versus-wrong answers, collected live by the monitoring service. It showed effort, not just success. Over 1,000 people signed in for the first demo, and more hospitals and practices joined after it. The update gate, shared between clients and server, kept every learner on current content, and the UX analysis after each release showed how the new features were being used. And the updated test setup made day-to-day development faster, because the tests were quick enough to run while coding; with test-driven development and pair programming on top, fewer bugs got through.

Lessons

I took three things away from this project. First, a strict framework helps more than it restricts; Angular’s structure did for our small team what a style guide does for bigger ones. Second, owning both ends of a feature changes how you design it: deciding where a calculation lives, in the API or in the browser, is easier when the same person writes both sides. Third, when there is no CI pipeline, quality depends on how easy the tests are to run locally: the investment in Jest paid off in a faster development loop.

Key decisions

  1. 01 A hard update gate

    Blocking continued use, on web and mobile, until a released update is installed. The update is announced through the native notification channel, and the installed version is checked against the content version reported by the API. Each client reports its version at launch, an endpoint gives the minimum supported version, and middleware refuses older versions on the protected API routes; an Angular HTTP interceptor and service worker show the update screen.

    Each release could change questions, answers, and levels, so every learner had to be on the up-to-date package before continuing, and results recorded on the server had to match the content the learner actually saw.

    Learners could finish the session they were in, then had to update to continue. Engagement with newly shipped features was visible in the UX analysis after releases.

    rejected: Letting learners finish on stale content and update whenever convenient

  2. 02 Statistics computed on the server

    Aggregating usage frequency, time spent, and correct-versus-wrong answers per employee in a separate monitoring service (Java, Spring Boot, its own database), and sending the managers ready-made figures.

    Raw answer records grow with every session; computing on the server kept the payload small, the Angular view simple, and the numbers consistent wherever they were shown.

    Every answer arrived live, with the time it took. Fastest and slowest answer times were taken after trimming the outer 5% at each end, so a single stray answer didn't skew them, and answers that came too fast were flagged as possible cheating.

    rejected: Sending raw results to the browser and calculating statistics in Angular

  3. 03 Jest for unit tests

    Introducing Jest on the Angular client and the Node.js backend while updating the existing Jasmine workflows, and working with test-driven development and pair programming.

    In a large TypeScript codebase, Jest's parallel workers, changed-file reruns, and responsive watch mode meant tests could keep pace with the coding loop.

    Jest also brought the tooling into one package (runner, assertions, mocks and spies, coverage), and snapshot testing gave a regression check for generated configuration and complex serialized output. Because it runs on Node.js, the same test tooling fit both the Angular client and the backend code. The development loop was our quality gate, so the tests had to be quick and comfortable to run.

    rejected: Staying with Angular's default Jasmine/Karma setup alone

Key figures

Key figures (self-reported)
MetricValueStatus
People signed in for the first demo1,000+reported
Share of the Node.js API~80%reported
Core components built14reported

Reported: Sign-ins at the product's first demo; more hospitals and practices joined afterwards · My part of the API; a developer before me wrote the rest · Reusable components built from the Figma designs for the core learning flow