Skip to the content.

Web Dev for Beginners with AI: A 12-Lesson Vibe Coding Course

A free, hands-on course that teaches complete beginners to build and ship a real web app with AI coding agents such as Claude Code, OpenAI Codex, GitHub Copilot and Google Antigravity. You learn web development the modern way: you describe what you want in plain English, the AI writes the code, and you learn to set it up, prompt it well, review what it wrote, test it, keep it safe and deploy it to the web. By the end you have a working habit tracker app online at your own URL, plus the judgement to know when the AI is right and when it is not.

This course is for people who have never coded, people who tried “learn to code” tutorials and stalled, designers, founders, students and anyone who keeps hearing about vibe coding and wants to do it properly.

Last reviewed: December 2026. AI tools change fast. Install commands and plan details below were checked against the official pages in December 2026; always confirm on the linked page before you pay for anything.

Table of contents

What is this course?

“Vibe coding” is building software by talking to an AI that writes the code for you. The term was coined by AI researcher Andrej Karpathy in a post on 2 February 2025, where he described leaning fully on the AI and barely looking at the code. Collins English Dictionary later named it its 2025 Word of the Year.

The pure version of vibe coding, where you never read the code, is fine for a throwaway toy. It is not fine for anything that holds other people’s data, costs money to run, or that you will need to change next month. This course teaches the useful middle path:

You do not need to memorise JavaScript syntax before you start. You will, however, pick up a working understanding of HTML, CSS, JavaScript, browser storage, testing and deployment along the way, because you cannot review what you do not understand at all. Think of it as learning to be the editor rather than the typist.

What makes this course different from a generic web development tutorial:

Traditional beginner course This course
Type every line yourself from the start The AI writes first drafts; you learn by reviewing and changing them
Syntax first, projects later A real project from lesson 3, concepts explained as they appear
Testing and deployment as “advanced” topics Tests in lesson 9, live on the web in lesson 12
Security rarely mentioned A full lesson on secrets, permissions and prompt injection
One editor, one way Works with any modern AI coding agent

Who it is for

This course fits you if:

It is probably not for you if you are already a professional developer. You may still like the safety and review lessons to share with your team.

What you will build

You build Tiny Habits, a small habit tracker that runs entirely in the browser:

It is deliberately small. Small apps are where beginners learn the most, because you can hold the whole thing in your head and actually check what the AI did. Every habit you build here (plan, prompt, review, test, deploy) scales to bigger projects.

A finished reference version lives in project/. Use it to compare against your own, not to skip ahead: the learning is in the building.

Course map: 12 lessons

# Lesson Time You will be able to
01 What vibe coding really is 30 min Explain how an AI coding agent works, where it shines and where it fails
02 Set up your tools 60 min Install an editor, Node.js, Git and one AI coding agent, and run your first session
03 Your first AI-built page 45 min Ask for a plan before code and get a clean HTML page for the habit tracker
04 Prompting like a pro 45 min Write prompts with goal, context, constraints and a done-check; set up an AGENTS.md file
05 Style it and make it accessible 60 min Get responsive CSS with dark mode and check accessibility basics yourself
06 Add interactivity with JavaScript 75 min Add, tick and delete habits, and understand the code that does it
07 Save data with localStorage 60 min Keep habits after a refresh and handle broken or missing data
08 Review AI code like an editor 60 min Read a diff, use Git as an undo button and spot the classic AI mistakes
09 Test your app with Node 75 min Write and run automated tests with node --test and use them to steer the AI
10 Debug with AI 60 min Use browser DevTools, read error messages and give the AI a bug report it can act on
11 Stay safe 60 min Protect secrets, control what the agent may run, prevent XSS and resist prompt injection
12 Deploy and share 60 min Put the app online on a free static host and plan your next project

Total: roughly 12 hours. Most people do one lesson per sitting, two or three a week, and finish in about a month.

What you learn, lesson by lesson

Part 1: Foundations (lessons 1 to 4)

Part 2: Building the app (lessons 5 to 7)

Part 3: Working like a professional (lessons 8 to 11)

Part 4: Shipping (lesson 12)

Skills map

A quick view of which skills each lesson trains. Use it to find the lesson to revisit when something feels shaky.

Skill 1 2 3 4 5 6 7 8 9 10 11 12
Prompting and planning x   x x x x x   x x    
HTML     x   x              
CSS and responsive design         x              
JavaScript and the DOM           x x   x x x  
Accessibility     x   x x   x       x
Data and storage             x   x      
Git and version control   x x         x       x
Reviewing code     x x x x x x x x x  
Testing                 x x   x
Debugging             x     x    
Security and safety x x   x     x x     x x
Deployment                       x

How each lesson works

Every lesson has the same shape, so you always know where you are:

  1. Goals: what you will be able to do by the end.
  2. Concepts: the small amount of theory you need, in plain English.
  3. Walkthrough: numbered steps with real prompts you can paste into your AI tool.
  4. What good output looks like: how to tell whether the AI did a good job.
  5. Checklist: tick these before moving on.
  6. Mini-quiz: a few questions, answers hidden in a collapsible block.
  7. Assignment: a small extension you do on your own.

Prompts are written as plain text blocks. Copy them, but change the details to fit your project. The AI does not need magic words; it needs clear goals and context.

Prerequisites

You need:

You do not need:

Helpful but optional: comfort with typing commands in a terminal. If the terminal is new to you, Lesson 2 walks you through it, and the Claude Code terminal guide and MDN’s command line crash course are both good primers whichever agent you use.

Quick start (15 minutes)

If you want a taste before committing to the full course:

  1. Install Node.js (the LTS version) and an AI coding agent from the table below.
  2. Download or clone this repository and open a terminal in the project/ folder.
  3. Run the tests:

    node --test
    

    You should see # pass 31 and # fail 0.

  4. Start a tiny local web server and open the app:

    python3 -m http.server 8000
    

    Then visit http://localhost:8000 in your browser. (The app uses JavaScript modules, which browsers will not load straight from a file:// path, so a local server is needed. On Windows, use py -m http.server 8000 if python3 is not found.)

  5. Start your AI agent in the same folder and try this prompt:

    Read index.html, app.js and habits.js. In five bullet points, explain to a
    complete beginner how adding a habit works, from the moment I press "Add"
    to the moment it appears on screen. Do not change any files.
    

If that explanation made sense, you are ready for Lesson 1.

AI coding tools compared

All of these tools can read your project, edit files and run commands, but they differ in where they live (terminal, editor or desktop app), how you pay and how much they ask before acting. Plans and quotas change often; the “Free option” column says only what each vendor’s official page said when this was reviewed, and you should check the linked page before relying on it.

Tool Made by Where it runs Install (official command) Free option? Good for
Claude Code Anthropic Terminal, desktop app, VS Code and JetBrains extensions curl -fsSL https://claude.ai/install.sh \| bash (macOS, Linux, WSL); irm https://claude.ai/install.ps1 \| iex (Windows PowerShell); brew install --cask claude-code Paid. Needs a paid Claude plan (Pro, Max and up) or an Anthropic Console (API) account; the free Claude plan does not include it Careful multi-step work, plan mode, clear permission prompts, strong docs for beginners
OpenAI Codex CLI OpenAI Terminal, plus IDE extension and cloud tasks npm install -g @openai/codex or brew install --cask codex OpenAI’s help pages list Codex across ChatGPT plans, with the Free plan described as limited trial access; limits vary by plan Using a ChatGPT account you already have
GitHub Copilot GitHub VS Code and other editors, plus Copilot CLI Editor: install the Copilot extension in VS Code. CLI: npm install -g @github/copilot (Node.js 22+) Yes: a Copilot Free plan with monthly limits; paid plans start at Pro Gentle start inside a familiar editor, visible diffs
Google Antigravity Google Desktop app and agy CLI curl -fsSL https://antigravity.google/cli/install.sh \| bash (macOS, Linux); irm https://antigravity.google/cli/install.ps1 \| iex (Windows) Personal sign-in supports Free, Pro and Ultra Google plans; check /usage for your quota Google account holders; replaces Gemini CLI for personal use
Cursor Anysphere, now part of SpaceX Desktop editor, CLI, cloud agents CLI: curl https://cursor.com/install -fsS \| bash; editor from cursor.com/download Plans changed in 2026 after the acquisition; check the pricing link on cursor.com People who want an AI-first editor
Aider Open source (Apache-2.0) Terminal python -m pip install aider-install then aider-install The tool is free; you pay your model provider, or use a local model Tinkerers who want open source and Git-first workflows
OpenCode Open source (MIT) Terminal brew install opencode, or see the README for other methods The tool is free; you bring a model provider Open-source terminal agent that works with many providers
Cline Open source VS Code extension Install “Cline” from the VS Code extensions panel The extension is free; you bring a model provider Seeing every step and approving each one inside VS Code

Notes that will save you confusion:

Terminal agent or editor assistant?

  Terminal agent (Claude Code, Codex CLI, Antigravity CLI, Copilot CLI, Aider, OpenCode) Editor assistant (Copilot in VS Code, Cursor, Cline)
What you see A chat in the terminal; you open files in any editor Chat panel next to your code, inline suggestions
How changes appear The agent edits files, shows a diff, asks before risky steps Diff shown inline; you accept or reject each change
Learning curve Need basic terminal comfort (lesson 2 covers it) Familiar if you have used any text editor
Best when Multi-file features, running tests, scripted tasks Small focused edits, learning by watching code change

Many people use both: an editor to read and tweak, a terminal agent for bigger tasks.

Best pick for beginners

There is no single best tool, but here are honest recommendations by situation.

If you want to start for free today: GitHub Copilot Free inside VS Code.

If you already pay for ChatGPT: OpenAI Codex CLI.

If you are willing to pay for a subscription and want the smoothest agent experience: Claude Code.

If you have a Google account and want a free agent with a desktop app: Google Antigravity.

If you want open source and full control: Aider, OpenCode or Cline with a model provider of your choice. Expect a little more setup and set a spending cap with the provider.

Whatever you choose, pick one tool and stick with it for the whole course. Switching tools mid-project is the most common way beginners lose a weekend.

Where to put your app online: deploy targets compared

Your habit tracker is a static site: just HTML, CSS and JavaScript files, no server code. That means you can host it free on any of these. Limits below were taken from each provider’s official pages when reviewed; treat them as approximate and check the link.

Host Free option How you deploy Good to know Best for
GitHub Pages Yes, for public repositories Turn on Pages in the repo settings; it publishes from a branch or folder Published sites up to 1 GB, soft bandwidth limit of 100 GB a month, not meant for running an online business (limits) Learning projects already on GitHub
Cloudflare Workers static assets Yes, Workers Free plan npx wrangler deploy with an assets directory in wrangler.jsonc Cloudflare now suggests Workers for new static sites; static asset requests are free and unlimited (pricing) Fast global hosting, room to add an API later
Cloudflare Pages Yes, available on all plans Connect a Git repo or upload a folder Still supported; Free plan allows 500 deploys a month Existing Pages users, Git-connected sites
Netlify Yes, a credit-based Free plan Drag a folder onto Netlify Drop, connect Git, or use the CLI Each production deploy and each GB of bandwidth uses credits from a monthly allowance Drag-and-drop simplicity
Vercel Yes, the Hobby plan Connect a Git repo or run npx vercel Hobby has usage caps and cannot buy extra usage; Vercel positions Pro for professional and business use Projects that may grow into Next.js

Recommendation for this course: GitHub Pages. You will already have the code on GitHub after lesson 8, it is one settings page, and the URL (your-name.github.io/tiny-habits) is easy to share. Lesson 12 also covers Cloudflare and Netlify Drop as alternatives.

The vibe coding loop

Every lesson follows the same rhythm. Learn it once and use it for every project after this one.

1. Describe    -> say what you want, why, and how you will know it works
2. Plan        -> ask the agent for a plan; change nothing yet
3. Approve     -> fix the plan before any code exists (cheapest moment to fix it)
4. Build       -> let the agent make one small change
5. Review      -> read the diff; ask "why" about anything unclear
6. Verify      -> run the app and the tests yourself
7. Save        -> commit to Git with a clear message
8. Repeat      -> next small step

Three rules make this loop work:

  1. Small steps. “Add a delete button” is a step. “Build the whole app” is not. If you cannot check a change in two minutes, it was too big.
  2. Plan before code. Asking “what would you change and why?” before any edits catches most misunderstandings for free.
  3. Commit when it works. Git commits are your save points. If the next change goes wrong, you go back instead of untangling it.

Prompt cheat sheet

Good prompts have four parts: goal, context, constraints, done-check. Here are prompts you will use throughout the course. Replace the bracketed parts.

Understand a project before changing it

Read the files in this folder and explain what this project does in plain
English for a beginner. List each file and its job in one line. Do not edit
anything.

Plan first

I want to [add a button that clears all completed habits]. Before writing any
code, give me a short plan: which files change, what each change does, and
anything that could go wrong. Wait for my OK.

Build one small step

Go ahead with step 1 of the plan only. Keep the change as small as possible,
do not reformat unrelated code, and tell me how to check it worked.

Explain a change

Walk me through the diff you just made, line by line, as if I have never seen
JavaScript. Why did you choose this approach over a simpler one?

Add tests

Add tests with node:test and node:assert for [the streak function]. Cover the
normal case, an empty list, and a month boundary. Run them with `node --test`
and show me the output.

Report a bug

Bug: when I [tick a habit and refresh], [the tick disappears].
Expected: [the tick stays after refresh].
Steps: 1) add habit "Read" 2) tick it 3) press refresh.
Console shows: [paste the exact red error text].
Find the cause first and explain it before you change anything.

Undo a bad direction

That change made things worse. Revert your last edit so the files match the
last commit, then suggest a different approach. Do not try again until I
choose.

Ask for a review

Review the changes since my last commit as a strict senior developer. Look for
bugs, security problems (especially anything written with innerHTML),
accessibility issues and code I do not need. List problems by severity. Do
not fix anything yet.

Keep the agent on track with a project instructions file

Many agents read a Markdown file in your project root before every session. AGENTS.md is an open format read by several tools, and Claude Code reads CLAUDE.md. A starter:

# Project notes for AI agents

- This is Tiny Habits: plain HTML, CSS and JavaScript. No frameworks, no build step.
- Keep pure logic in habits.js and storage.js. DOM code goes in app.js only.
- Never use innerHTML with user text. Use textContent.
- Run `node --test` after every change and show the result.
- Ask before adding any dependency or running anything that installs packages.
- Explain changes in plain English: I am learning.

Lesson 4 goes deeper on prompting.

Safety: how to vibe code without getting burned

AI coding agents can read and write files and run commands on your computer. That is what makes them useful, and it is also why you need a few habits from day one. Lesson 11 covers all of this hands-on; here is the summary.

1. Keep secrets out of code and out of chat

2. Review every diff before you accept it

3. Do not run commands you do not understand

4. Watch for prompt injection

5. Protect your users

6. Watch the bill

Glossary

Term Plain-English meaning
Agent An AI that can take actions (read files, edit code, run commands) in a loop until a task is done, not just answer questions
API A way for one program to talk to another. “Calling an API” means sending a request and getting data back
API key A secret password that lets a program use a paid service. Treat it like a bank PIN
Accessibility (a11y) Making sure people using keyboards, screen readers, zoom or other assistive tech can use your app
Branch A parallel version of your code in Git, so you can try something without touching the main version
Browser DevTools Built-in developer panels in your browser (usually F12) for seeing errors, elements and storage
Build step A tool that transforms your source files before they go live. Tiny Habits has none on purpose
CLI Command-line interface: a program you use by typing commands in a terminal
Commit A saved snapshot of your project in Git, with a message saying what changed
Context Everything the AI can “see” when it answers: your prompt, the files it read, earlier messages
Context window The maximum amount of text a model can consider at once. Long sessions can push early details out
CSS The language that controls how a page looks: colours, spacing, layout
CSP (Content Security Policy) A browser rule set by the page that limits which scripts and styles may load, reducing XSS damage
Deploy Putting your app on a server so others can open it at a URL
Diff A view of exactly what changed in a file: removed lines and added lines
DOM The browser’s live, in-memory version of your HTML page, which JavaScript can change
Environment variable A named setting stored outside your code, often used to hold secrets
Function A named, reusable block of code that takes inputs and returns an output
Git A version control tool that records the history of your project so you can undo and compare
GitHub A website that hosts Git repositories online and adds collaboration features
Hallucination When an AI confidently states something false, such as a function or package that does not exist
HTML The language that describes the structure and content of a web page
JavaScript The programming language that makes web pages interactive
JSON A text format for data, like {"name": "Read", "done": []}. Used to save habits
localStorage A small key-value store in the browser that keeps data after the page closes, for one site on one device
LLM Large language model: the AI system behind chat assistants and coding agents
Model The specific AI “brain” a tool uses. Different models trade speed, cost and quality
Node.js A program that runs JavaScript outside the browser. We use it to run tests
Plan mode An agent setting or habit where the AI only researches and proposes, without editing files
Prompt The instructions you give the AI
Prompt injection Hidden instructions inside content the AI reads that try to hijack it
Pure function A function whose output depends only on its inputs and which changes nothing else. Easy to test
Refactor Changing how code is written without changing what it does
Regression Something that used to work and is now broken after a change
Repository (repo) A project folder tracked by Git
Responsive design Layouts that adapt to phone, tablet and desktop screen sizes
Static site A website made of plain files with no server code; can be hosted almost anywhere for free
Terminal A text window where you type commands. Also called shell, command line or console
Test Code that checks other code does what it should, automatically
Token A chunk of text (roughly part of a word) that models read and write; also how many APIs bill
Vibe coding Building software mainly by describing it to an AI and letting the AI write the code
XSS (cross-site scripting) A bug where attacker text is run as code in someone else’s browser

FAQ

What is vibe coding?

Vibe coding means building software by describing what you want to an AI in everyday language and letting the AI write the code. Andrej Karpathy coined the term in February 2025 for a style where you “give in to the vibes” and barely read the code. Today people use it more loosely for any AI-first way of building. This course teaches a careful version: the AI writes, you plan, review and test.

Is vibe coding safe?

It is as safe as your habits. The real risks are: leaking secrets (API keys pasted into prompts or committed to GitHub), running commands you do not understand, accepting code with security holes such as XSS, and prompt injection from untrusted content. Each has a simple defence, covered in the safety section and Lesson 11. Pure vibe coding without review is fine for toys; anything with real users or real data needs review and tests.

Can I build an app without knowing how to code?

You can build a working small app without writing code by hand, yes. You will still need to understand roughly what the code does, so you can tell when the AI is wrong, fix bugs and keep the app safe. That understanding comes much faster than learning to write code from scratch, and this course is designed to give it to you as you build.

Do I still need to learn to code if AI writes the code?

You need to learn to read code and to think like a programmer: break problems into steps, name things clearly, test assumptions. You do not need to memorise syntax. Many people find that after a few AI-built projects they can write small pieces themselves anyway.

Which AI coding tool should I use?

See Best pick for beginners. Short version: Copilot Free in VS Code to start free; Codex if you already have ChatGPT; Claude Code if you want a polished agent and are happy to pay; Antigravity if you live in Google’s ecosystem.

Is vibe coding free?

Learning it can be. Several tools have a free option with limits, the editor (VS Code) is free, Node.js and Git are free, and static hosting is free. Heavier daily use usually means a paid plan or API spending.

How long does it take to learn vibe coding?

This course takes about 12 hours. You will be able to build and ship small apps after it. Getting good, meaning knowing what to ask for and spotting subtle problems, takes a few months of regular projects, just like any skill.

What can I build with vibe coding?

Personal tools, prototypes, landing pages, small games, dashboards, browser extensions, internal tools, scripts that automate boring tasks. Larger products are possible but need stronger review, tests, security and often an experienced developer involved.

Why does the AI keep breaking things that worked before?

Usually because the request was too big, the AI lost track of earlier details in a long session, or there were no tests to catch regressions. Fixes: smaller steps, commit after every working step, keep a project instructions file, start a fresh session for each new feature, and add tests (Lesson 9).

The AI says it fixed the bug but it is still broken. What now?

Stop asking it to “try again”. Give it evidence: exact steps, the exact error from the browser console, what you expected. Ask it to find and explain the cause before changing code. If two attempts fail, revert to your last commit and try a different approach. Lesson 10 walks through this.

Can AI-written code be used commercially?

Generally yes, but the details depend on each tool’s terms and your local law, and you are responsible for what you ship. Check your tool’s terms of service, avoid pasting in code you do not have rights to, and review licences of any packages the AI adds.

Is vibe coding the same as no-code?

No. No-code tools (drag-and-drop builders) hide the code completely and limit you to what the platform supports. Vibe coding produces normal source code that you own, can read, can change and can host anywhere.

Do I need a powerful computer?

No. The model runs in the cloud. Any computer that runs a modern browser and a code editor comfortably is enough.

Can I vibe code on my phone?

Some vendors offer mobile apps or web versions that run cloud tasks, but for learning, a laptop or desktop is far better: you need to see files, run the app and read diffs side by side.

Should I use a framework like React?

Not for your first projects. Frameworks add build tools, configuration and new error messages, which makes it much harder to review what the AI wrote. Learn the plain web platform first with this course; frameworks make far more sense once you know what problem they solve.

Will AI coding agents replace web developers?

They already change what developers spend time on: less typing, more specifying, reviewing, testing and deciding. People who understand both the product and the code, and can direct AI well, are in a strong position. This course is aimed at building exactly that combination.

Is it cheating to learn web development with AI?

Not if you are learning. The goal is to build working software you understand. Using an AI to write a first draft and then reading, questioning and testing it is a legitimate way to learn, as long as your school or employer allows it for the task at hand.

What if I get stuck in a lesson?

Compare your files with the reference project, paste the exact error into your agent with the bug-report prompt from the cheat sheet, or open an issue on this repo describing what you tried.

Write a one-page spec before you build anything

The single best predictor of a smooth vibe coding project is a short written spec. Agents are excellent at following a clear spec and poor at reading your mind. Copy this template into a SPEC.md file at the start of every new project and fill it in yourself before you open the agent.

# SPEC: <app name>

## One sentence
<Who it is for> can <do what> so that <why it matters>.

## Must have (version 1)
- ...
- ...
- ...

## Not now (explicitly out of scope)
- Accounts and log-in
- Syncing between devices
- ...

## Data
- What is stored, where, and for how long.

## Screens
- Main screen: ...
- Empty state: what a first-time visitor sees.
- Error states: what happens when something fails.

## Done means
- Works on a phone-sized screen and with a keyboard only.
- Tests pass with `node --test`.
- Live at a public URL.

Then start each session with:

Read SPEC.md and AGENTS.md. Tell me in three bullets what you understand we
are building and what is out of scope. Ask me up to three questions about
anything unclear. Do not write code yet.

The “Not now” list matters as much as the “Must have” list. It stops the agent (and you) from adding log-in systems and databases to a weekend project.

Worked example: one feature from idea to commit

Here is what a single trip around the loop looks like in practice, using a real feature from the course: showing the longest-ever streak next to the current one. The agent replies are paraphrased; yours will be worded differently.

1. Describe and ask for a plan

I want each habit card to also show the longest streak ever, like
"Best: 12 days". Before writing code, tell me which files you would change
and how you would calculate it. Do not edit anything yet.

2. Read the plan. A good plan sounds like this:

I would add a pure function longestStreak(habit) to habits.js that walks the sorted done list and counts runs of consecutive days. I would add three tests to tests/habits.test.js (empty list, a single run, two runs where the second is longer). Then in app.js I would add “Best: N days” to the stats line. No other files change.

Things to check in the plan: it names specific files, it keeps logic out of app.js, it mentions tests, and it does not touch anything unrelated. If the plan says “I’ll refactor the rendering while I’m there”, say no.

3. Approve one step

Good plan. Do the habits.js function and its tests first. Run node --test
and show me the output. Leave app.js alone for now.

4. Review the diff. You should see a new exported function of about a dozen lines and a few new tests. Ask about anything you cannot follow:

In longestStreak, why do you compare addDays(prev, 1) with key instead of
subtracting the two dates?

A good answer: subtracting dates goes through milliseconds and can be off by an hour around daylight saving changes, while comparing day keys cannot.

5. Verify. Run node --test yourself. All green? Open the app and check nothing else changed.

6. Commit.

git add -A
git commit -m "Add longestStreak with tests"

7. Next step. Now ask for the app.js change, review it, check it in the browser, commit again. Two small commits, each easy to undo, each understood.

Common beginner mistakes (and the fix)

Mistake What happens Fix
Asking for the whole app in one prompt A big pile of code you cannot review; bugs hide everywhere One feature per prompt; plan first
Never committing One bad change and you cannot get back to the working version Commit every time something works
Saying “fix it” with no details The agent guesses, changes random things, makes it worse Steps, expected result, actual result, exact error text
Letting one session run for hours The agent forgets early decisions and starts contradicting itself Fresh session per feature; keep decisions in AGENTS.md
Accepting changes you do not understand You cannot maintain or debug your own app Ask “explain this diff line by line” before accepting
Letting the agent delete or weaken tests to “make them pass” Tests pass, bugs ship Tell it tests are the spec; it must fix the code, not the test
Pasting API keys into the chat Secrets end up in logs, history or commits Environment variables; only name the variable in prompts
Approving every command without reading Files deleted, packages installed, things pushed by accident Read each command; say no when unsure and ask what it does
Adding a framework for a tiny app Build tools, config files and errors you do not need yet Plain HTML, CSS and JS until a real need appears
Testing only on your own laptop Broken on phones, invisible to keyboard users Check a narrow window, keyboard-only, and dark mode
Trusting package names the AI suggests Hallucinated or look-alike packages can be malicious Look the package up on its official registry page before installing
Switching AI tools mid-project Different conventions, lost context, confusion Pick one tool for the whole course

Troubleshooting your setup

Symptom Likely cause What to try
command not found: node Node.js not installed or terminal opened before install Install the LTS from nodejs.org, then open a new terminal
command not found: claude (or codex, agy, copilot) Install folder not on your PATH yet Open a new terminal; then follow the tool’s troubleshooting page linked in the comparison
npm ERR! EACCES when installing a CLI globally npm trying to write to a system folder Do not use sudo; use the vendor’s native installer instead, or fix npm’s global folder as the vendor docs describe
App shows a blank page when opened by double-clicking index.html Browsers block JavaScript modules on file:// pages Run python3 -m http.server 8000 in project/ and open http://localhost:8000
Address already in use when starting the server Another server is using port 8000 Use another port: python3 -m http.server 8080
node --test finds no tests Running from the wrong folder cd project first; tests live in project/tests/
SyntaxError: Cannot use import statement outside a module package.json missing "type": "module" Make sure project/package.json is present
Habits vanish after refresh Private browsing, blocked site data, or a bug in saving Try a normal window; check the Application tab in DevTools; see Lesson 7
The agent says it has no access to a file It is running in a different folder Quit, cd into your project folder, start the agent again
You hit a usage limit mid-lesson Free or lower plans have quotas Commit your work, note the next step in AGENTS.md, continue when the quota resets

How much does it cost to learn this way?

You can complete the whole course for nothing, but here is an honest picture.

Item Free route Paid route
Editor VS Code (free) Same; paid AI editors exist
Node.js, Git, Python Free Free
AI coding agent Copilot Free, Codex on ChatGPT Free (limited trial), Antigravity Free, or an open-source agent with a local model A monthly subscription for Claude Code, Codex, Copilot or similar, or pay-per-token API use with an open-source agent
Hosting GitHub Pages, Cloudflare, Netlify or Vercel free tiers Not needed for this project
Custom domain Optional; use the free host subdomain A domain name costs a yearly fee at any registrar

Tips to stay inside free limits: write focused prompts, avoid asking the agent to re-read the whole project repeatedly, start fresh sessions instead of very long ones, and do your own simple checks (running tests, opening the page) instead of asking the agent to do them.

The reference project

The finished app is in project/. It is intentionally plain: no framework, no bundler, no dependencies.

project/
├── index.html          # page structure, form, list, CSP
├── styles.css          # layout, dark mode, focus styles
├── app.js              # browser glue: events and rendering (textContent only)
├── habits.js           # pure logic: names, toggling, streaks, stats
├── storage.js          # save/load with localStorage, tolerant of bad data
├── package.json        # "type": "module" and a test script; no dependencies
└── tests/
    ├── habits.test.js  # day maths, validation, streaks, list operations
    └── storage.test.js # round trips, broken data, blocked storage

Run the tests (Node.js 22 or later; uses only the built-in node:test and node:assert modules):

cd project
node --test

Run the app locally:

cd project
python3 -m http.server 8000
# then open http://localhost:8000

Design choices worth noticing, each explained in a lesson:

For teachers and study groups

The course works well for a classroom, bootcamp or weekend workshop.

Your end-of-course checklist

You have finished the course when you can honestly tick every line:

Where to go next

Once you finish the twelve lessons, these free resources go deeper. Every link was checked in December 2026.

Web fundamentals

Accessibility

Working with AI coding agents

Testing, Git and tools

Security

Deploying

Project ideas for your next build

  1. A reading log with pages per day and a monthly chart.
  2. A recipe box that scales ingredient amounts.
  3. A packing list generator for trips, saved per trip.
  4. A pomodoro timer with a history of completed sessions.
  5. A flashcard app with spaced repetition.
  6. A budget splitter for a group dinner.
  7. A plant watering reminder with per-plant schedules.
  8. A personal links page (your own “link in bio”) deployed with a custom domain.

Use the same loop: plan, small steps, review, test, commit, deploy.

Contributing

Pull requests are welcome. Please keep entries accurate:

If this helped you, a star helps others find it.

License

Code and content in this repository are released under the MIT License.

More free resources

Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.