A step-by-step tutorial for people who want to become fullstack engineers in the AI era. Read it at fullstack.hagicode.com.
Start from zero, follow one short lesson at a time, and keep your place as you go. The tutorial is written for learners and beginners, so each course builds on the one before it.
- A course catalog with a course switcher. Pick a course from the list and jump between courses without losing your way.
- Lesson pages with outlines. Each course has an outline of its groups and lessons, previous and next navigation, and a table of contents for the page you are reading.
- Reading progress that stays in your browser. A lesson counts as read when you reach its end or when you mark it yourself, and you can mark it unread again. Progress is stored only in your browser; nothing is sent to a server. Clearing the site data clears your progress. The home page's "Zero to Hero" headline fills in as you read, and is complete when every lesson is read.
- Ten interface languages. English, Simplified Chinese, Traditional Chinese, Japanese, Korean, German, French, Spanish, Brazilian Portuguese and Russian. A lesson that has no translation yet is shown in English with a notice saying so.
- A light and dark theme toggle. Without a saved choice, the theme follows your system setting.
When PostHog is loaded and the visitor has not opted out, the progress writer sends two events. Both are sent from the progress store in src/lib/progress.ts, through the site's capture wrapper in src/lib/posthog-events.ts.
| Event | Properties | Sent when |
|---|---|---|
lesson_marked_read |
course, lesson (public course and lesson ids) |
A lesson is stored as read for the first time, whether the reader marks it or reaches its end. |
course_completed |
course |
A stored mark makes every lesson of the course read, moving the course from incomplete to complete. |
Deduplication rules:
- A lesson that is already stored as read sends nothing when it is marked again.
- Restoring progress on page load, a reload of a complete course and a change from another tab send nothing.
course_completedis sent once per transition. It is sent again only after the course became incomplete (a lesson was marked unread) and then complete again.- Nothing is sent when storage is blocked or a write fails. Progress still works in memory for that page.
- Events carry only the two ids above, never lesson text, notes, URLs or raw storage contents.
- A click on a link with
data-ga-*attributes may also produce acta_clickevent. The business event above is the canonical record of the action; dashboards must not add these events tocta_clickcounts.
Only the first course has finished lessons. The rest are drafts, and learning paths are not published yet.
- Docker for Beginners (
docker-for-beginners): twelve lessons in five groups, from what Docker is and installing it to running Nginx, PostgreSQL and Node.js as containers, connecting services with networks and Docker Compose, community tools, troubleshooting, and cleaning up.
These courses follow Docker for Beginners in reading order. Each has an outline and a draft page per lesson, marked with a draft notice. The pages are outlines still to be expanded and fact-checked, not finished lessons.
- Run Ready-Made Apps with Docker
- GitHub Desktop and GitHub
- Build with an AI Partner
- Your First Website
- Publish Your Website
- Your First Web App
- An App with a Database
- The Same App in Another Language
- Add AI Features to Your App
- Capstone: Build and Launch Your Own App
- Finished lessons for the draft courses
- Learning paths that group courses into an ordered route
- The repository uses pnpm, pinned in
package.jsonpackageManager. Runcorepack enableonce, thenpnpm install.pnpm-lock.yamlis the only lockfile; do not commitpackage-lock.json. - Settings live in
pnpm-workspace.yaml.allowBuildslists the dependencies whose install scripts may run (reviewed individually,falsemeans reviewed and denied); review any new dependency that has an install script and add it there. - A local registry mirror belongs in
~/.npmrconly. Never commit aregistry=line or a mirror URL;pnpm run check:registry(also run in CI) fails on any non-registry.npmjs.orgtarballin the lockfile and on mirror hosts in tracked files. - Undeclared imports fail under pnpm's strict layout: declare the package instead of hoisting it.