PROJECT 04 : FULL-STACK

QBank: NCLEX Exam Preparation Platform

A full-stack learning platform that helps nursing students prepare for the NCLEX-RN and NCLEX-LPN exams, with tutor-written notes, a question bank, an adaptive readiness exam, Next Generation NCLEX case studies and group discussions.

I designed and built the whole product: the ASP.NET Core API, the Angular single-page application, the PostgreSQL database, real-time discussions and notifications, subscription payments, and the CI/CD pipelines that deploy it to production.

The platform is live as PASSRN NCLEX at passrnnclex.com.

Live classes started here too. They have since been split out into a product of their own, Live Classes with Recordings, with its own database and deployment.

Key Features

1. Question Bank and Practice Tests

Learners build practice tests from the subjects they choose. Random published questions are drawn from the bank, and case studies are mixed in whole at random places once a test is long enough.

Every NCLEX item type is supported. The Next Generation types (matrix, cloze, drag-and-drop, bow-tie, highlight and extended multiple response) earn partial credit the same way the real exam scores them.

2. Adaptive CAT Readiness Exam

The readiness exam is computerized adaptive testing, modelled on the NCLEX:

  • A one-parameter (Rasch) model uses each question's difficulty on the ability scale.
  • The learner's ability estimate is updated after every answer.
  • The next question is chosen close to the current estimate.
  • NCLEX stopping rules end the exam once the result is clearly above or below the passing standard, within a minimum and maximum number of questions.

3. Group Discussions

Learners meet in audio-only discussion rooms that connect browser to browser (a WebRTC mesh), with SignalR carrying signalling, presence and chat, so they need no media server.

Live classes with video, screen sharing and recordings moved to their own product when QBank was split in two.

4. Notes, Files and Support

Tutors publish learning notes as PDFs. The server renders the pages to images so they can be read in the browser. The platform also has cheat sheets, personal notes, a document store, discussions, a calendar, user groups, notifications and a live support chat.

5. Subscriptions, Free Trials and Referrals

Learners subscribe with M-Pesa (Safaricom Daraja STK push) or by card through Paystack. Plans and payment methods are managed in the app per company, prices are set in US dollars and converted to Kenyan shillings, and a subscription analysis page tracks revenue.

New learners can get a free trial; trials granted by staff need a second person's approval. Referral links reward learners who bring others in.

6. Daily Study, Flashcards and Leaderboard

Flashcards use spaced repetition (SM-2): after each card the learner rates how well they knew it, and the card comes back sooner or later accordingly, with a daily limit on new cards. Questions a learner misses turn into cards automatically from their key takeaway.

A daily study session, study streaks and a leaderboard keep learners coming back.

7. Access Control and Administration

Roles have fine-grained permissions managed in the app. To stop account sharing, each account may sign in on one phone and one computer; an administrator can release a device.

Staff get a global search, a "view as" mode to see the app exactly as a given learner does, question reports from learners, editable email accounts and notification templates, and a guided tour for new users.

8. Found on Google

The public landing and topic pages are prerendered at build time with their own titles, descriptions and link previews, while everything behind sign-in is kept out of search results.

Architecture

  • API: ASP.NET Core 8 with Entity Framework Core, JWT authentication, ASP.NET Identity and SignalR hubs for discussions, notifications and support.
  • Web: an Angular 21 single-page application served by Nginx, which also proxies /api to the API container.
  • Database: PostgreSQL 18 in its own Docker stack. Migrations run automatically on every deploy, and a nightly backup keeps 14 days of dumps.
  • Media: audio discussions connect browser to browser over WebRTC, with SignalR for signalling. The LiveKit media server went with live classes to their own product.
  • Hosting: Docker Compose on a Debian 13 VPS. The web and API containers listen on localhost only, the firewall allows nothing but SSH in, and the public reaches the site through a Cloudflare Tunnel.

CI/CD Pipeline

Production now runs on a VPS and deploys from GitHub Actions. Every pull request builds the API and runs the Angular unit tests. A push to main builds the API and web images once, pushes them to the GitHub Container Registry tagged with the commit, and deploys them over SSH: the VPS only pulls images and never builds anything.

Deploys are serialised so a newer push waits for the running one, the registry keeps only the newest ten versions of each image, and rolling back is re-running an older workflow. Secrets stay in a .env file on the server and are never committed.

It started on my self-hosted GitLab, where a shell runner rebuilt the containers on the homelab server; that pipeline is still in the repository.

Running It in Production

Database Without Hard-Coded IPs

The API joins the PostgreSQL stack's Docker network and connects to the database by container name, so changing the router or the server's IP needs no configuration change.

Live-Class Connection Failures

While live classes were still part of QBank, some users' browsers could not connect to the LiveKit server, while command-line tools could. The cause was a smaller path MTU on their ISP: the browser's larger TLS handshake was dropped. I fixed it with a TCP MSS clamp in the server firewall.

Reclaiming Server Storage

The server's disk reached 149 GB used. I traced the space to a corrupted monitoring write-ahead log that could no longer be truncated, an unbounded Docker build cache and a package cache. After cleaning up and tuning GitLab for a small server, it uses 21 GB and about half the RAM. The pipeline now prunes build cache automatically.

Technologies Used

  • C# and ASP.NET Core 8
  • Entity Framework Core
  • ASP.NET Identity and JWT
  • SignalR
  • Angular 21 and Bootstrap 5
  • PostgreSQL
  • WebRTC
  • Paystack and M-Pesa Daraja APIs
  • Docker and Docker Compose
  • Nginx
  • GitHub Actions and GitHub Container Registry
  • Self-Hosted GitLab CI/CD
  • Debian Linux
  • Cloudflare

What This Project Demonstrates

QBank is a complete product rather than a single feature: I took it from database design and API to user interface, payments, real-time media and production operations, and later split one part of it out into a product of its own.

It shows domain logic built to match a real exam (adaptive testing and NCLEX partial-credit scoring), real-time systems that tolerate dropped connections, and integration with local and international payment providers.

It also shows the work of running software after launch: automated deployments, diagnosing network and storage problems, and keeping the platform lean on self-managed hardware.