Lesson 20: Capstone: Plan, Build, Test and Publish Your Own Site
This is the lesson where everything comes together. Your capstone is a complete website of your own design, built with the HTML, CSS and JavaScript of Units 1 to 3, served by the backend and database of Unit 4 if you choose to include them, and published with the Git and deployment skills of this unit. It should solve a real problem for real people, even a small one: a site for a school club, a local library, a sports team, or a hobby you care about. The best capstones are not the biggest or the flashiest, but the ones that are finished, tested and genuinely useful, and this lesson gives you a plan to get there in stages, with checkpoints to keep you on track.
Planning before you build
Spend the first session planning, not coding. Write one sentence saying what your site is for and who it is for, and list the pages it needs, usually no more than five for a first capstone. For each page, sketch its structure on paper: header, navigation, main content, footer, and what goes in each part. List the features you need, such as a contact form or a searchable list, and sort them into must-have, should-have and nice-to-have, so that if time runs short you can drop the nice-to-haves and still have a working site. Then set up your project: a Git repository, a folder for each part, and a simple README file saying what the project is. A plan written down is a promise to yourself, and it stops the most common capstone failure, which is building in circles without ever finishing.
Building in stages
Build in stages, and make each stage work before starting the next. Stage one is content and structure: every page in semantic HTML, with real text, real links and real images, and no styling yet. Stage two is styling: your CSS, mobile-first, with a consistent look across pages, using Flexbox and Grid for layout. Stage three is behaviour: the JavaScript that makes the site interactive, such as a working search, a form that validates, or a list that updates. Stage four, if you include it, is the backend: an API and a database serving real data to the frontend. Commit after each stage, and after each feature within a stage, so you always have a working version to fall back to, and test as you go rather than saving all the testing for the end, when fixing things is hardest.
Testing, fixing and polishing
When the site is built, run the full testing checklist from Lesson 18: a second browser, a phone, keyboard only, 200 percent zoom, JavaScript off, every form, and the W3C validator. Then ask two people to use it while you watch without helping, and write down every place they hesitate, because hesitation is a design problem, not a user problem. Fix the serious problems first, then the confusing ones, then the cosmetic ones, and retest after each fix. Polish the details that visitors notice: a clear title on every page, a favicon, a friendly message when a search finds nothing, and a footer with a way to contact you. A site that is tested and polished feels professional in a way that extra features never will, and it is what makes a capstone worth showing to others.
Publishing and showing your work
Deploy your site following the checklist from Lesson 19: push to Git, wait for the deploy to succeed, and check the live site in a private window and on a phone. Then write a short description of what you built, what it does, and what you would add next, and share the link with your teacher, your friends, and anyone the site is for. Keep the project going after the course if you can: fix the bugs people report, add one feature at a time, and keep committing, because a live site that improves is the best evidence of what you have learned, and it is the start of a portfolio you can show to anyone. You started this course by learning how the web works; you finish it by adding a piece to the web yourself, and that is a real achievement.
Watch & Learn
One video to watch for this unit, from a trusted educator.
- Git and GitHub for Beginners - Crash Course — freeCodeCamp.org
Gwen Faraday explains Git and GitHub from zero: commits, branches, pushing and pulling — exactly the workflow you will use to publish your capstone project.
Key Terms
- Capstone
- A final project that brings together everything learned in a course.
- README
- A file describing a project: what it is, how to run it, and how it is organised.
- Must-have / nice-to-have
- Sorting features by importance, so the essential ones are built first and extras can be dropped safely.
- Favicon
- The small icon shown on a browser tab next to a page's title.
- Portfolio
- A collection of finished work you can show to others, such as teachers or employers.
- User testing
- Watching real people use a site without helping, and noting where they hesitate.
Discussion Questions
- Why is it better to plan a capstone on paper before writing any code?
- Your capstone is running short on time. Which features do you drop, and how do you decide?
- Why is watching someone use your site without helping more useful than asking them if they like it?
Practice Questions
- What should you write down before building a capstone?
- Why build in stages, with each stage working before the next begins?
- What is the most valuable thing to learn from watching someone use your site?
- Why commit after each feature, not just at the end?
- After publishing, what should you do next?
Show answers
- What the site is for, who it is for, its pages, and its features sorted by importance. A written plan stops you building in circles and helps you finish.
- So you always have a working version to fall back to. If a later stage breaks, the earlier stages still work and the problem is easier to find.
- Where they hesitate. Hesitation shows a design problem, and fixing it makes the site better for everyone.
- So each change is recorded separately and can be undone on its own. Small commits make the history readable and mistakes easy to reverse.
- Share the link, collect feedback, and keep improving it. A live site that grows is the best evidence of what you have learned.