Build Websites and Apps with AI
Go from idea to a deployed website and API by prompting, step by step.
Learn the workflow professional developers use with AI: write a spec, plan, build in small steps, review and test. You will build a real coffee shop website in React and its order API in FastAPI, using free AI assistants, then deploy both. You will also learn to debug with AI, use coding agents, and avoid the security mistakes AI makes.
You will be able to
- Turn an idea into a spec an AI can build from
- Set up a React (Vite) project and build pages with AI help
- Build and test a small REST API with AI
- Deploy a frontend and backend for free
- Review, debug and secure AI-written code
- Use coding agents (Claude Code, Copilot, Gemini CLI, Cursor) safely
Who it's for
Beginners who know a little HTML/JavaScript, and developers who want to build faster with AI. Complete beginners can follow along and take Web Development with React alongside.
Before you start
Basic computer skills; any HTML or JavaScript helps
Roles it leads to
Lessons
Module 1
The AI coding workflow
How to work with AI so the code is right, not just fast.
The AI coding workflow: spec, plan, build, review
AI can write code in seconds, but code you do not understand is a liability. Learn the four-step loop of spec, plan, build in small steps and review that professionals use, and why skipping a step costs more time than it saves.
AI coding tools compared: chat, IDE assistants and agents
There are three kinds of AI coding tools: chat assistants, assistants inside your editor, and agents that work on your project. Learn what each is good at, what it risks, and which free option to start with.
Set up your machine: Node.js, VS Code, Git and a free AI assistant
Install Node.js, VS Code and Git, connect a free AI assistant to your editor, and make your first saved commit. Everything in the rest of this track builds on this setup.
Write a project spec an AI can build from
A spec is the most valuable thing you write in AI-assisted development. Learn a simple template, write a full spec for the Brew & Bean website, let AI interview and review it, and turn it into a plan.
Reading and reviewing AI-written code
AI code often runs and is still wrong. Learn a repeatable way to read it: run it, trace it, ask what could go wrong, test the edges and ask AI to explain or critique it. Practise on a real order-total function with hidden bugs.
Module 2
Project: coffee shop website
Build "Brew & Bean", a small coffee shop site in React, prompt by prompt.
Coffee shop website: plan the site with AI
Plan the Brew & Bean website before writing code: decide the users, pages, components and data, get a one-page spec from AI, review it, and split the build into small testable steps. You will use this plan in every lesson of the project.
Start the React project with Vite
Create the Brew & Bean project with Vite and React, add react-router-dom, and build the site shell: header, footer and four routed pages. You will test it, learn what each starter file does, and save your first Git commit.
Build the home and menu pages
Build the real Home and Menu pages for Brew & Bean: a menu data file, a rupee formatter, a reusable MenuCard, a hero with customer favourites, and a category filter. You will learn props, lists, keys and state, and how to review AI-written components.
Add a cart and order form
Add a working cart to the Brew & Bean site: a CartContext with a reducer, Add buttons, a count in the header, quantity controls, localStorage, and an order form with Indian mobile validation that ends in a confirmation. The order is not sent anywhere yet.
Make it responsive, accessible and fast
Test the Brew & Bean site at phone width, fix the layout with flexible grids and media queries, add keyboard and screen reader support, set page titles, and measure speed with a production build and Lighthouse. Every fix is a small change you can check in the browser.
Deploy the site for free
Build the Brew & Bean site for production, push it to GitHub and deploy it to a free host. You will fix single-page routing so /menu works on refresh, test the live site on your phone, learn how updates work and how to debug a failed deploy.
Module 3
Project: coffee shop backend
Give the site a real order API with a database and tests.
Design the order API with AI
Design the Brew & Bean order API before writing code: endpoints, data, rules, status codes and security, with AI as your assistant. You finish with an API contract that every later lesson builds from.
Build the API with FastAPI
Build the Brew & Bean order API in FastAPI from your contract: menu, orders, status updates, validation and an admin key. You prompt AI, review its code with a checklist, run it and try to break it.
Add a database: SQLite first, then Postgres
Make orders survive restarts: add SQLAlchemy models, run on SQLite, then switch the same code to Postgres with one environment variable. You also learn about migrations and why hosted apps use a managed database.
Test the API with AI-written tests
Write an automated test suite for the order API with pytest and FastAPI's TestClient. AI drafts the tests, you review them with a checklist, run them and prove they catch real bugs.
Connect the website to the API and deploy
Connect the Brew & Bean website to your order API: load the menu with fetch, submit real orders, handle loading and errors, then deploy the database, API and site and test the live shop on your phone.
Module 4
Working skills
Debugging, refactoring, security and agents.
Debugging with AI: errors, logs and stack traces
Learn to read a Python traceback and a browser error, gather the right evidence, and give AI a debugging prompt that finds the cause instead of guessing. You will fix two real Brew & Bean bugs and lock each fix in with a test.
Refactoring and documenting code with AI
Learn a safe routine for cleaning up AI-written code: write tests first, refactor in small steps, review the diff, and let AI draft comments and a README that you then verify.
Security pitfalls in AI-written code
AI writes code that runs, not always code that is safe. Learn the seven most common security mistakes in AI-generated web code, how to spot and fix them, and a checklist to use before you deploy.
Coding agents: Claude Code, Copilot, Gemini CLI and Cursor
Coding agents can read your project, edit files and run commands. Learn how they work, how the main tools compare, and a safe plan-first routine for giving one a real task in your coffee shop project.
When not to trust AI, and why fundamentals still matter
AI writes plausible code that is sometimes wrong. Learn the typical failures, see a realistic React bug that only fundamentals can catch, and build habits that keep you in control of what you ship.
Tools, courses & exams
Hand-picked, free first. Free tiers and exam fees change, so check the provider's page.
Free tools
Gemini
A chat assistant you can use for planning, specs and explaining code with a Google account.
Free with usage limits; paid plans give more.
Google AI Studio
Try Gemini models in the browser and get an API key for your own projects. Useful when you later add AI features to an app.
Free tier with rate limits; paid usage beyond that.
GitHub Copilot in VS Code
GitHub
An editor assistant for completion, inline chat and edit mode inside VS Code. Good first assistant once your setup is done.
Free plan with monthly limits; paid plans for more usage. Check the page for current limits.
Gemini Code Assist for individuals
An editor assistant for VS Code and other IDEs, with a free version for individual developers.
Free version for individuals; paid plans for teams and more usage.
Claude
Anthropic
A chat assistant that is strong at reading and explaining code. Use it to review your spec and your code.
Free plan available; paid plans add more usage.
Claude Code
Anthropic
A coding agent that runs in your terminal and edits your project. Use it after you are comfortable reviewing diffs.
Needs a Claude paid plan or API credits; check the official page for current options.
Gemini CLI
An open-source coding agent for the terminal that you can sign into with a Google account.
Free usage with limits at the time of writing; check the repository for current terms.
Ollama
Ollama
Runs open AI models on your own laptop, which helps with slow internet or private code. Quality depends on your hardware.
Free courses
Learn web development
MDN Web Docs (Mozilla)
Clear, free lessons on HTML, CSS and JavaScript. You need these basics to review what AI writes.
Learn React
react.dev
The official React tutorial. It helps you read the components that AI generates for the website project.
freeCodeCamp curriculum
freeCodeCamp
Free, project-based courses on web development and Python. Good for practising fundamentals alongside AI-assisted work.
Official docs
Visual Studio Code documentation
Microsoft
Official guide to the editor: shortcuts, terminal, extensions and debugging.
Pro Git book
Git community
The free official book on Git. Read the first chapters to understand commits and undoing mistakes.
FastAPI tutorial
FastAPI
The official step-by-step tutorial for the framework used for the order API in this track.
Vite guide
Vite
Official guide to the build tool used to start the React project.
OWASP Top 10
OWASP
The standard list of common web security risks. Use it as a checklist when reviewing AI-written code.
Communities
Exams & certifications