A gamified platform for learning Linux, programming and the web through real missions solved in a simulated terminal and in-browser code editors, with XP, ranks, streaks, duels and a bilingual course library.

TerminalQuest is a complete learning game that teaches Linux and software development by making the player actually do the work. It ships 614 missions across 160 stages and forty tracks, from a ninety-mission Linux path to Bash, C, C++, Python, JavaScript, TypeScript, Go, Rust, SQL, HTML, CSS, React, Next.js, Node.js, Docker, Kubernetes, Playwright, Flutter, Kotlin, PyTorch and LangChain. Missions run against a real simulated shell with more than sixty commands, pipes, redirection, sudo, Tab completion and a virtual filesystem that commands genuinely mutate, while code missions execute in eval-free Python and simulated JavaScript, Go, Rust, SQL, React, Next.js, Playwright, Dart, Kotlin and Flutter runners, an HTML/CSS live preview and a server-side grader that never sends the expected answer to the browser. On top of the missions sits a full course of 313 chapters and 1,096 lessons, XP from 15 to 350 per mission, a level curve of 25·(L−1)², eleven ranks from Terminal Cadet to Root Commander, daily streaks on Tehran midnight, a daily quiz, async 1v1 duels with server-side escrow and settlement, a weekly league and lifetime Elo. Accounts support email, Telegram, GitHub and Bale sign-in, generated beam avatars and a downloadable player card, while an admin console manages users, roles, bans, progress resets, content and plan entitlements. The React front end is backed by a Go API on PostgreSQL, with a crawlable server-rendered marketing site, blog, plans, sitemap, RSS and JSON-LD, plus an installable PWA and an Android shell.
Building a convincing Linux shell in the browser, with pipes, redirection, sudo, completion and a virtual filesystem that actually changes, while never running untrusted code
Simulating many language runtimes in one editor while keeping grading authoritative and the expected answers off the client
Designing progression that stays fair at scale: XP curves, ranks, streaks, duel escrow, league seasons and lifetime Elo all calculated server-side
Serving a crawlable, bilingual marketing site and blog plus a heavy SPA from a single Go API on a modest VPS
Supporting Telegram and Bale sign-in on a host where those networks are filtered, without a direct webhook
A self-contained shell engine with its own command table, virtual filesystem and parser, so missions can mutate real state without a backend process
A single editor pipeline with per-language runners and graders behind one interface, keeping expected output and hidden tests on the server
All economy and competition rules implemented as transactional server operations, with the client only rendering the resulting state
Server-rendered marketing, blog and plan pages with edge caching and catalog snapshots, so crawlers get real HTML and the API survives launch spikes
One-time ticket sign-in relayed by a Telegram bot hosted outside the filtered network, with the API storing only the ticket HMAC