A training platform that turns non-technical test specialists into test engineers, with two self-contained tracks: ISTQB Foundation (CTFL v4.0) exam prep and AI for Test Engineers (from zero AI knowledge to how AI powers autonomous vehicles — and how to test it). Both tracks ship lessons, module quizzes, mock exams, spaced-repetition flashcards, read-aloud (TTS), and cohort tracking with an admin roster.
Status: both tracks are complete — 8 modules each, 50 lessons (27 ISTQB + 23 AI), 332 questions (192 + 140), 202 flashcards (110 + 92), 49 diagrams, and 115 verified videos (85 + 30), plus seven mock exams (five ISTQB + two AI).
- The ISTQB track has five blueprint-exact mocks (
istqb-mock-1..5— each mirrors the official CTFL v4.0 shape: 40 questions, 60 minutes, pass at 65%, with the official per-chapter and K-level question distribution). Its module 8 is the exam-readiness hub: it lists the five mock exams as entry points and shows a Ready / Not-yet verdict — the mean of the learner's last 2 mock attempts must reach 80% to count as ready. - The AI track (eight modules,
ai-m1–ai-m8) covers what AI and machine learning are, neural networks from scratch, computer vision, object detection, transformers & LLMs, the autonomous-vehicle AI stack, and how to test AI systems — metrics, nondeterministic failures, and scenario coverage/SOTIF. The neural-networks lesson embeds an interactive demo (a trainable perceptron rendered in the browser). Its two mocks (ai-mock-1..2— 30 questions, 45 minutes, pass at 70%) draw from the AI question bank per an authored blueprint, and its readiness verdict uses the same last-2-attempts logic at a 78% threshold.
See docs/ for the spec and plan.
Two ways to run, one codebase:
- Solo — everything lives in your browser (IndexedDB). No server needed.
- Cohort — one SQLite-backed API server; the admin invites learners, and progress/quiz/exam/card-review data syncs to the server. The first registered user becomes the bootstrap admin.
Feature list: tracks → modules → lessons (markdown + diagrams + verified video embeds + read-aloud), per-module quizzes with best-attempt tracking, timed mock exams with blueprint assembly and draft-resume, per-track exam-readiness hubs — each track's hub lists its own mock-exam entry points plus a Ready / Not-yet indicator (last-2 average of that track's mock attempts vs its readiness threshold) — SM-2 spaced-repetition flashcards, TTS via built-in browser voices or client-side Kokoro-82M (optional cloud proxy), admin roster with per-learner stats (including card-review counts) + CSV export + one-time invite codes, and a one-time solo→cohort migration that preserves in-browser progress. Per-card retention analytics are future work; the shipped admin stat is the per-user count of card reviews.
pnpm install
pnpm content:build # validates content and emits content.json
pnpm --filter tet-web devOpen the printed URL (default http://localhost:5173). Solo mode stores all progress in the browser — nothing leaves your machine.
cp .env.example .env # then set SESSION_SECRET (see .env.example)
docker compose -f docker/docker-compose.yml --env-file .env up --build--env-file .env is needed because compose resolves .env relative to the
compose file's directory, not your shell's.
The API server listens on http://localhost:8787. Then:
- Open the web app (solo build or dev server), click Sign in.
- Point Server URL at
http://localhost:8787(or wherever the server runs). - The first registered user becomes the admin — register first yourself,
then create one-time invite codes from
/adminand invite learners.
The production home is a Dana app: nginx serves the built SPA with a
server-side SPA fallback, so deep links work (/track/istqb-ctfl,
/exam/istqb-mock-1 render directly). Deploy with:
./scripts/dana-deploy.sh # pnpm build → stage dist/ → dana app deployPrereqs: the dana CLI installed and dana auth login completed (see
Ondana's Install the Dana Utility doc). The script builds the content bundle
and web app, stages apps/web/dist into deploy/dana/dist, and hands the
Docker image (nginx:alpine + strict asset routing) to dana app deploy.
Manual equivalent: docker build -t test-engineer-track:latest deploy/dana/
then dana app deploy --image test-engineer-track:latest from
deploy/dana/.
The web app uses absolute asset paths (base: '/') because Dana serves the
app at its own subdomain root (test-engineer-track.applied.ondana.ai).
Assets are served strictly (404, never the fallback) so a missing asset can
never mask itself as HTML. Apps sit behind Ondana SSO — first visit prompts
for sign-in.
Managed Postgres (M7): the Dana app opts into the platform's managed
Postgres via deploy/dana/project.toml:
[databases]
enable_postgres = trueOn deploy Dana injects PGHOST/PGPORT/PGDATABASE/PGUSER; the API then
uses the PgStore driver (apps/server/src/store/pg.ts) and authenticates
with an IAM access token fetched from the GCP metadata server — the token
is the database password, fetched per connection attempt and refreshed
before expiry (no PGPASSWORD). Schema (apps/server/src/schema.pg.sql) is
applied idempotently on first use. If the environment's Postgres engine is
off, the deploy still succeeds but no PG* envs appear — the server
env-gates on PGHOST and silently falls back to SQLite (apps/server/src/store/index.ts).
No SQLite file is written in Postgres mode; data survives scale-to-zero and
redeploys. Local dev and self-host keep SQLite unchanged.
A raw static host (uploading apps/web/dist/ without a server) still works
for solo mode from the root URL, but deep links need a server fallback — use
the Dana app.
Cohort logins are configured per user at sign-in (the Server URL field), so
point them at wherever the API server runs — same origin, another port on the
same host, or a same-domain subdomain (all "same-site": the session cookie is
SameSite=Lax; the server sends permissive CORS with credentials). Fully
cross-domain deployments need SameSite=None; Secure cookie work (not yet
implemented — future hardening, requires HTTPS).
Docker (recommended): the docker compose section above. State lives in
the tet-data volume at /data/tet.sqlite3. Back it up with a SQLite online
snapshot — complete even with the server running, and includes writes still
sitting in the -wal journal:
docker compose -f docker/docker-compose.yml --env-file .env exec -T \
-w /app/apps/server tet-server \
node -e "require('fs').rmSync('/data/backup.sqlite3',{force:true});const db=require('better-sqlite3')('/data/tet.sqlite3');db.exec(\"VACUUM INTO '/data/backup.sqlite3'\");db.close()"
docker compose -f docker/docker-compose.yml --env-file .env cp tet-server:/data/backup.sqlite3 ./tet.sqlite3.backupThe rmSync step makes the command safely re-runnable: VACUUM INTO fails
when the target file already exists, so a second backup run without removing
the old snapshot errors out.
A raw docker compose cp (or bind-mounted tar) of tet.sqlite3 alone is
not a safe backup here: the database runs in WAL mode, so recent writes sit
in tet.sqlite3-wal and a main-file-only copy silently misses them.
Bare metal:
pnpm install
pnpm --filter tet-server start # tsx runs src/index.ts directlyEnvironment (see .env.example): PORT (default 8787), DB_PATH
(default ./data/tet.sqlite3, parent directory created automatically),
SESSION_SECRET (reserved for signed sessions; generate with
openssl rand -hex 32), TTS_PROVIDER + TTS_API_KEY (optional cloud TTS
proxy — leave empty to disable; the web app ships with browser voices and
client-side Kokoro).
SQLite keeps recent writes in a -wal journal next to the main file, so don't
plain-cp the database while it's in use. Back it up with the online backup
API instead: sqlite3 data/tet.sqlite3 ".backup 'backup.sqlite3'" — complete,
consistent, and WAL-inclusive even while the server is running.
All curriculum lives in packages/content/content/:
content/
├── tracks.toml # track + module manifest (ids, titles, order,
│ # readiness thresholds, lessonIds, exam weights)
├── exams/ # mock exam blueprints, one [exam] table per file
│ # (five blueprint-exact ISTQB mocks + two AI
│ # mocks, wired to each track's readiness_examIds)
├── istqb/module-1/ # one directory per module
│ ├── lesson-01-….md # flat lesson files: TOML frontmatter (id, module,
│ │ # title, minutes, objectives, videos, diagrams)
│ │ # + markdown body
│ ├── questions.toml # ONE file: one [[question]] table per question
│ └── flashcards.toml # SM-2 deck: one [[card]] table per card
└── diagrams/ # SVG figures referenced from lessons
Lesson frontmatter is TOML between +++ markers (not YAML):
+++
id = "istqb-m1-what-is-testing"
module = "istqb-m1-fundamentals"
title = "What Is Testing?"
minutes = 12
objectives = ["FL-1.1.1", "FL-1.1.2"]
videos = [{ title = "…", url = "https://www.youtube.com/watch?v=…" }]
diagrams = [{ title = "Testing vs debugging", file = "diagrams/testing-vs-debugging.svg" }]
+++Questions live in the module's single questions.toml (type is single or
multi; answers lists option indexes; lo is the learning objective):
[[question]]
id = "istqb-q-0001"
type = "single"
stem = "What is the main purpose of testing?"
options = ["To prove that the software works correctly", "…"]
answers = [1]
explanation = "Testing finds defects and gives stakeholders objective information…"
lo = "FL-1.1.1"
klevel = "K2"
tags = ["ch1"]Flashcards live in the module's flashcards.toml:
[[card]]
id = "istqb-fc-0001"
front = "What is an error?"
back = "A human action or mistake that produces an incorrect result…"
tags = ["ch1"]The build is the validator: pnpm --filter tet-content build re-derives
content.json and fails on schema violations (bad ids, missing references,
invalid question types, unreachable lessons) and on exam blueprints that
cannot actually be assembled from the question bank (constraint interplay,
e.g. a group whose questions are all multi-select while the exam forbids
multi-selects). Link checking: pnpm --filter tet-content check-links
verifies every external link and video embed. Extension story: add a
module = add a directory + one [[track.module]] entry in tracks.toml.
apps/web React 19 + Vite SPA (learner + admin UI)
apps/server Hono + better-sqlite3 API server (auth, progress, admin, TTS)
packages/core Domain logic: SM-2 SRS, scoring, quiz/exam assembly, types
packages/content Curriculum data + build-time validator (TOML/MD → content.json)
packages/storage StorageAdapter: LocalAdapter (IndexedDB) + ServerAdapter (HTTP)
packages/storage defines one adapter interface implemented twice: a
LocalAdapter persisting to IndexedDB (solo) and a ServerAdapter speaking
HTTP to the API server (cohort). The web app is written entirely against the
interface, so both modes — and the one-time solo→cohort migration — are the
same UI code. Adapter parity is enforced by a shared test suite. The server
holds users (bcrypt), sessions, invites, progress, attempts, and card-review
state in SQLite; the static SPA talks to it cross-origin with cookie
credentials.
pnpm test # all unit/component suites (core, content, storage, web, server)
pnpm build # content validation + web static build + server typecheck
pnpm smoke # builds content + web, then runs 3 Playwright smoke testsSmoke tests boot the real server (throwaway SQLite DB) and the built web app
(vite preview), then drive the solo learner flow (asserting the two-track
dashboard), the cohort register→login→admin-roster flow, and the cohort
mock-exam flow (sign in → ISTQB module 8's readiness hub → answer all 40
questions of mock exam 1 → submit → report with score and per-chapter bars).
First run downloads Chromium: pnpm exec playwright install chromium.
License: MIT — see LICENSE.