Module Three: Building a Complete Web Application with Claude Code
Welcome back, young developer! You have learned so much already. In Module One, you learned the basics โ what Claude is, how to set up Claude Code, and how to create a simple web page. In Module Two, you learned about powerful features like CLAUDE.md, Skills, MCP, Hooks, and Subagents. Now, in Module Three, we will put it all together! We will build a complete web application โ a real project that works and can be used by people. We will build a Todo List App โ a web app where users can add, view, and delete tasks. We will use all the features we learned. This is the big one โ let's build something amazing!
After completing this module, you will be able to:
Chidi's Big Project
Chidi had learned so much about Claude Code. He could build web pages and use all the features. But he wanted to build something big โ a complete web app that people could use. His teacher said, "Chidi, build a Todo List App โ a place where people can manage their tasks." Chidi was nervous but excited. He used everything he learned: he planned the project, used CLAUDE.md for memory, built the frontend with HTML/CSS/JS, built the backend with Node.js, connected to a database with MCP, added login with authentication, tested with hooks, and finally deployed it online. His app worked beautifully! His teacher and friends were impressed. Chidi said, "I built this with Claude Code โ and I couldn't have done it without everything I learned!"
Definition: Planning means thinking about what your app will do, who will use it, and what features it will have before you start coding.
Why it's important: Good planning saves time and makes your app better.
Simple explanation: Like drawing a map before going on a journey.
Real-life example: A team plans a new app by writing down the features.
School example: A student plans a project by making a list of what to do.
Home example: A parent plans a family trip by deciding where to go.
Nigerian example: A Lagos startup plans their app by writing a requirements document.
Illustration โ Planning a Todo App:
Todo List App +------------------------------------------+ | Features: | | โ Add a new task | | โ View all tasks | | โ Mark a task as done | | โ Delete a task | | โ Login and Register | | โ Save tasks to a database | +------------------------------------------+
Mini summary: Plan your app before you start coding.
Definition: Project structure is how you organise your files and folders so everything is tidy and easy to find.
Why it's important: A good structure makes it easy to find and manage your code.
Simple explanation: Like organising your school bag โ books in one place, pens in another.
Real-life example: A developer creates folders for frontend, backend, and database.
School example: A student organises their project files in separate folders.
Home example: A parent organises their documents by category.
Nigerian example: A developer in Abuja creates a well-structured project.
Illustration โ Project Structure:
my-todo-app/ โโโ frontend/ โ โโโ index.html โ โโโ style.css โ โโโ script.js โโโ backend/ โ โโโ server.js โ โโโ routes.js โ โโโ database.js โโโ CLAUDE.md โโโ package.json
Mini summary: Organise your project into folders for frontend and backend.
Definition: The frontend is what users see and interact with in their browser.
Why it's important: A good-looking frontend makes users happy.
Simple explanation: Like the dining area of a restaurant.
Real-life example: A developer builds a beautiful page for an app.
School example: A student creates a nice-looking project page.
Home example: A parent builds a clean site for their business.
Nigerian example: A Lagos startup builds a user-friendly frontend.
Illustration โ Todo App HTML:
<!DOCTYPE html>
<html>
<head>
<title>My Todo List</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>๐ My Todo List</h1>
<input type="text" id="task-input" placeholder="Add a task...">
<button id="add-btn">Add Task</button>
<ul id="task-list"></ul>
<script src="script.js"></script>
</body>
</html>
Mini summary: The frontend is what users see and interact with.
Definition: CSS makes the frontend look beautiful โ colours, fonts, spacing, and layout.
Why it's important: A nice-looking app makes people want to use it.
Simple explanation: Like dressing up in nice clothes.
Real-life example: A developer adds colours and rounded corners.
School example: A student makes their project look professional.
Home example: A parent adds their brand colours to a site.
Nigerian example: A developer uses Nigerian colours (green and white) for a site.
Illustration โ Todo App CSS:
body {
max-width: 500px;
margin: 50px auto;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
h1 {
text-align: center;
}
#task-input {
width: 70%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
}
#add-btn {
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
Mini summary: CSS makes your app look beautiful.
Definition: JavaScript adds interactivity โ like adding tasks, deleting tasks, and communicating with the backend.
Why it's important: It makes the app work!
Simple explanation: Like the muscles that make the body move.
Real-life example: A developer writes code to add a task when a button is clicked.
School example: A student writes JavaScript to make a form work.
Home example: A parent adds JavaScript to a contact form.
Nigerian example: A developer writes JavaScript for a Lagos delivery app.
Illustration โ Todo App JavaScript:
document.getElementById('add-btn').addEventListener('click', function() {
const taskInput = document.getElementById('task-input');
const taskText = taskInput.value.trim();
if (taskText !== '') {
const li = document.createElement('li');
li.textContent = taskText;
const deleteBtn = document.createElement('button');
deleteBtn.textContent = 'Delete';
deleteBtn.onclick = function() { li.remove(); };
li.appendChild(deleteBtn);
document.getElementById('task-list').appendChild(li);
taskInput.value = '';
}
});
Mini summary: JavaScript makes your app interactive and functional.
Definition: The backend is the server that handles data, logic, and communication with the database.
Why it's important: It's the engine that powers the app.
Simple explanation: Like the kitchen of a restaurant โ it's where the work happens.
Real-life example: A developer builds a server with Node.js and Express.
School example: A student sets up a simple server for a project.
Home example: A parent sets up a server for a family app.
Nigerian example: A developer in Port Harcourt builds a backend for a delivery app.
Illustration โ Backend Setup:
const express = require('express');
const app = express();
const port = 3000;
app.use(express.json());
// Route to get all tasks
app.get('/tasks', (req, res) => {
res.json({ message: 'List of tasks' });
});
// Route to add a task
app.post('/tasks', (req, res) => {
const { task } = req.body;
res.json({ message: 'Task added', task });
});
app.listen(port, () => {
console.log(`Server running on port ${port}`);
});
Mini summary: The backend is the server that handles data and logic.
Definition: MCP (Model Context Protocol) connects Claude to external data sources like databases.
Why it's important: It lets you store and retrieve data permanently.
Simple explanation: Like a filing cabinet where you keep records.
Real-life example: A developer connects to a SQLite database to store tasks.
School example: A student connects to a database for a project.
Home example: A parent connects to a database for a budget app.
Nigerian example: A Lagos developer connects to a PostgreSQL database.
Illustration โ MCP Connection:
Claude <-----> MCP Server <-----> Database (SQLite) (AI) (bridge) (data storage) Tasks are stored in the database so they don't disappear when you refresh the page.
Mini summary: MCP connects your app to a database for permanent storage.
Definition: CLAUDE.md is a file where you store important project information so Claude remembers it.
Why it's important: It keeps Claude consistent throughout the project.
Simple explanation: Like writing notes for yourself.
Real-life example: A developer writes the tech stack and design rules in CLAUDE.md.
School example: A student writes project goals in CLAUDE.md.
Home example: A parent writes business details in CLAUDE.md.
Nigerian example: A team in Abuja writes project rules in CLAUDE.md.
Illustration โ CLAUDE.md for Todo App:
# Todo List App ## Tech Stack - Frontend: HTML, CSS, JavaScript - Backend: Node.js, Express - Database: SQLite with MCP ## Features - Add tasks - View tasks - Delete tasks - Mark tasks as done ## Design - Colours: Green (#28a745) and white - Font: Arial, sans-serif - Responsive design ## Authentication - Login and Register with JWT
Mini summary: CLAUDE.md stores project details so Claude remembers.
Definition: Authentication is how users log in and register so they can have their own tasks.
Why it's important: It keeps each user's data private and secure.
Simple explanation: Like having a key to your own room.
Real-life example: A social media app has login and register.
School example: A student portal has login.
Home example: A family app has separate accounts.
Nigerian example: A Lagos bank app has login for customers.
Illustration โ Authentication Flow:
User clicks "Register" ---> Creates account (username, password) User clicks "Login" ---> Enters credentials Server checks credentials ---> If correct, user is logged in Logged-in user can see their own tasks
Mini summary: Authentication lets users log in and have private data.
Definition: These are the main features of the app โ adding tasks, viewing them, and deleting them.
Why it's important: These are what makes the app useful.
Simple explanation: Like making a to-do list on paper, but online.
Real-life example: A developer builds these features for a productivity app.
School example: A student builds these for a class project.
Home example: A parent builds these for family tasks.
Nigerian example: A developer in Kano builds these for a local business.
Illustration โ Feature Flow:
Add Task: User types task, clicks Add โ Task is saved to database. View Tasks: On page load, tasks are fetched from database and displayed. Delete Task: User clicks Delete โ Task is removed from database and list.
Mini summary: Add, View, and Delete are the core features.
Definition: Hooks are automated scripts that run to test your code, like checking if the add task feature works.
Why it's important: Testing catches bugs before users find them.
Simple explanation: Like checking your homework before submitting.
Real-life example: A developer uses a hook to run tests every time code changes.
School example: A student uses a hook to check their project.
Home example: A parent uses a hook to test a family app.
Nigerian example: A team in Abuja uses hooks for testing.
Illustration โ Hook Flow:
Claude changes code ---> Hook runs tests ---> Tests pass! โ If tests fail, Claude fixes the code automatically.
Mini summary: Hooks automate testing to catch bugs.
Definition: Deploying means publishing your app so people can use it on the internet.
Why it's important: That's how people see your work!
Simple explanation: Like putting a poster on a wall.
Real-life example: A developer deploys to Vercel or Netlify.
School example: A student deploys their project to share with classmates.
Home example: A parent deploys a business website.
Nigerian example: A startup deploys their app for customers.
Illustration โ Deployment Flow:
Your project ---> Upload to Vercel/Netlify ---> Live URL! (local files) (hosting service) (https://your-app.vercel.app)
Mini summary: Deploying publishes your app online for everyone to see.
Definition: Reviewing means looking at your app to find what's good and what can be better.
Why it's important: You can always make things better!
Simple explanation: Like getting feedback on a school project.
Real-life example: A developer gets user feedback and improves the app.
School example: A student improves their project after teacher feedback.
Home example: A parent improves their site based on family feedback.
Nigerian example: A Lagos startup improves their app based on user reviews.
Illustration โ Improvement Cycle:
Build ---> Review ---> Improve ---> Build again (create) (look at) (make better) (repeat)
Mini summary: Always review and improve your app.
Definition: Presenting means sharing your app with others โ showing what it does and how you built it.
Why it's important: It helps others understand your work and gives you confidence.
Simple explanation: Like giving a speech in class.
Real-life example: A developer presents their app to a client.
School example: A student presents their project to the class.
Home example: A child presents their business idea to parents.
Nigerian example: An entrepreneur presents their app to investors in Lagos.
Illustration โ Presentation Outline:
1. Introduction โ What is your app? 2. Demo โ Show it working. 3. How you built it โ Tech stack, features. 4. Challenges โ What was hard? 5. Lessons learned โ What you discovered. 6. Future plans โ What you want to add.
Mini summary: Presenting your project shares your work with others.
In this module, we built a complete web application โ a Todo List App. We learned:
How to build a Todo List App with Claude Code:
Walk students through building the Todo List App step by step. Let them use Claude Code for each part. Encourage them to add their own features. Emphasise the importance of planning and structure. Celebrate their final projects.
Help your child plan their project. Sit with them as they build. Ask questions like "What feature will you build next?" and "How does this part work?" Celebrate their finished app with them.
+------------------------------------------+ | Todo List App | | +--------------------------------------+ | | | Frontend (HTML/CSS/JS) | | | | - Add Task | | | | - View Tasks | | | | - Delete Task | | | +--------------------------------------+ | | +--------------------------------------+ | | | Backend (Node.js/Express) | | | | - API Routes | | | | - Authentication | | | +--------------------------------------+ | | +--------------------------------------+ | | | Database (SQLite with MCP) | | | | - Store tasks | | | | - Store users | | | +--------------------------------------+ | +------------------------------------------+
| Feature | Simple Web Page | Complete Web App |
|---|---|---|
| Frontend | Yes | Yes |
| Backend | No | Yes |
| Database | No | Yes |
| Authentication | No | Yes |
| User data | No (static) | Yes (dynamic) |
| Deployment | Possible | Common |
Day 1: Plan the app Day 2: Set up structure and CLAUDE.md Day 3: Build frontend Day 4: Build backend Day 5: Connect to database with MCP Day 6: Add authentication Day 7: Test with hooks Day 8: Deploy online Day 9: Review and improve Day 10: Present your project
| Task | Without Claude | With Claude |
|---|---|---|
| Building frontend | Write all code manually | Describe, Claude writes |
| Building backend | Write server code yourself | Claude builds the server |
| Database connection | Write connection code | MCP handles it |
| Testing | Manual testing | Hooks automate |
| Time to build | Weeks | Days |
In this module, we built a complete web application โ a Todo List App โ using everything we learned. We planned the app, set up the project structure, built the frontend with HTML, CSS, and JavaScript, built the backend with Node.js and Express, connected to a database with MCP, used CLAUDE.md for project memory, added authentication, built core features, tested with hooks, and deployed online. We also learned how to review and present our project. You now have the skills to build real web applications with Claude Code. This is a huge achievement โ you are a real web developer!
| Term | Definition |
|---|---|
| Frontend | A) The server |
| Backend | B) What users see |
| Database | C) Login and register |
| Authentication | D) Data storage |
| Deploy | E) Publish online |
Answers: Frontend-B, Backend-A, Database-D, Authentication-C, Deploy-E
Scenario 1: You want to build a Todo List App for your family.
Task: Write a prompt to Claude Code to start building the frontend.
Answer: "Build a simple frontend for a Todo List App with HTML, CSS, and JavaScript. Include an input field, an add button, and a list to display tasks."
Scenario 2: You want to add authentication to your app.
Task: Write a prompt to Claude Code to add login and register.
Answer: "Add authentication to my Todo List App. Include a register page and a login page. Use JWT for tokens."
In groups of three, build a Todo List App together. One person builds the frontend, one builds the backend, and one sets up the database with MCP. Combine your work and present the final app to the class.
Build your own Todo List App from start to finish. Use Claude Code for every part. Write down all the prompts you used. Present your app to someone.
Build a complete web application of your choice (not a Todo List). It could be a recipe app, a book tracker, or a contact manager. Use Claude Code for every part. Deploy it online and share the link.
Write a detailed report on how you built your Todo List App. Include:
Take your Todo List App and add a new feature: due dates for tasks, or categories, or priority levels. Use Claude Code to help. Write down the prompts you used and what you added.
Fill-in-the-blank: 1. Frontend, 2. Backend, 3. Database, 4. Authentication, 5. MCP, 6. Hook, 7. Deploy, 8. CLAUDE.md, 9. delete, 10. test
True/False: 1F, 2T, 3T, 4T, 5F, 6T, 7F, 8T, 9F, 10T
Multiple Choice: 1A, 2B, 3A, 4A, 5A, 6A, 7A, 8A, 9A, 10A, 11A, 12A, 13A, 14A, 15A
Matching: Frontend-B, Backend-A, Database-D, Authentication-C, Deploy-E
In Module Four, we will take things to the next level. We will learn about Advanced Claude Code Features โ we will build custom agents, use advanced MCP integrations, and build production-ready applications. We will also work on a Capstone Project โ a big project that showcases everything you have learned. Get ready to become a Claude Code expert!
๐ Congratulations! You have completed Module Three: Building a Complete Web App ๐
You are now ready for Module Four โ Advanced Features and Capstone Project!