How to build a frontend developer portfolio
A good portfolio shows three to five of your best projects, each with a live demo, its code, and what you learned. Here is what to include, how to present each project, and the mistakes to avoid.

A photographer's portfolio doesn't hold every photo they've ever taken. It holds their best twenty, each one picked for a reason. Someone flipping through it learns in a few minutes what the photographer does well. A developer portfolio works the same way.
A frontend developer portfolio is a small website that shows your best three to five projects, each with a live demo, a link to its code, and a few lines on the problem it solves and what you learned. Add a short intro and a way to contact you, and you have everything it needs. Here's what to include, how to present each project, and the mistakes to avoid.
What should a frontend developer portfolio include?
Keep it to one page, or a few short ones. It needs four parts:
- A short intro at the top. Your name, what you build, and the tools you use, in one or two sentences.
- Your projects. This is the main part, and it should come right after the intro.
- A short about section. How you got into frontend, and what you're learning now.
- Contact links. Your email and your GitHub profile, plus a resume if you have one.
That's it. You don't need a blog, a skills chart, or a page for every tool you've tried.
How many projects should you show?
Three to five is plenty. Each one should show a different skill. Three finished, polished projects say more than ten half-done ones.
Here's a mix that covers the main frontend skills:
| Project | What it shows |
|---|---|
| A page with a careful layout, like a landing page for a made-up product | HTML, CSS, and a layout that fits any screen |
| An app that loads data, like a weather or recipe search | Fetching data, plus loading and error messages |
| An app with real state, like a shopping cart or a task board | A framework like React, with components and state |
| Something you care about, like a tracker for your hobby | Your own idea, and your own decisions |
Need ideas? Frontend projects for beginners lists ten, from easy to harder.
How should you present each project?
Every project needs the same four things: the problem, a demo link, a code link, and what you learned. Here's a project card in HTML with all four:
<article class="project">
<h3>Recipe finder</h3>
<p>Find recipes from the food already in your fridge.</p>
<a href="https://example.com/recipes">Live demo</a>
<a href="https://github.com/your-name/recipe-finder">Code</a>
<p>What I learned: how to cancel a search when a newer one starts.</p>
</article>
The <article> element groups everything about one project. The heading names it, and the first paragraph says what problem it solves. The two links open the working app and its code. The last line shows one thing you figured out.

Here's what makes each part work:
- The problem. Write one sentence anyone could understand. "Find recipes from what's in your fridge" says more than "A React app that uses an API."
- A live demo. Let people click and use the real thing. A screenshot can't show that it works.
- The code. Link to the project on GitHub, with a clear README. New to GitHub? Start with Git and GitHub for beginners.
- What you learned. Name one hard problem and how you solved it. It shows how you think, which the code alone can't.
What should a project's README say?
A README is a short text file in a project's main folder. It is often the first thing a visitor sees when they open your project on GitHub. Keep it short:
- One line on what the project does, and a screenshot.
- The link to the live demo.
- How to run it on your own computer.
- What you'd improve next.
For the "how to run it" part, list the exact commands:
git clone https://github.com/your-name/recipe-finder.git
cd recipe-finder
npm install
npm run dev
These download the code, move into its folder, and install the packages, which are code by other people, that it needs. The last line runs the dev script from the project's package.json file. npm and package.json explains how scripts work.
What if you don't have work experience yet?
Then your projects are your experience. Pick ideas that solve a small, real problem, even if it's only your own. A tracker for your running, or a page for a friend's bakery, has a real user and real choices to explain.
Open source counts too. That means projects whose code anyone can read and improve. Fixing a small bug in one you use is real teamwork, and other developers review your change. Present it like any other project: the problem, a link to your change, and what you learned.
Where should you host your portfolio?
GitHub Pages can host it straight from a project on GitHub. It serves plain HTML, CSS, and JavaScript files, and you can use its github.io address or your own domain name. If you built your portfolio with Next.js, deploying Next.js shows your options.
Put each project's live demo online the same way. A project that only runs on your laptop is hard for anyone else to see.
Does the portfolio site itself matter?
Yes, because it's a project too. It doesn't need to be fancy, but it should be fast, readable, and easy to use. Check three things before you share it:
- It works on a phone. Open it on yours and tap every link.
- It works with a keyboard. Press Tab to move through the page, and make sure you can always see where you are.
- It loads fast. Run Lighthouse, a tool built into Chrome's developer tools that checks a page's speed and accessibility.
What mistakes should you avoid?
- Broken links. Click every demo and code link before you share the site, and again every few months.
- Untouched tutorial projects. If you followed a tutorial, add a feature of your own and say what you added.
- Skill bars. "JavaScript 80%" doesn't mean anything to a reader. Let your projects show your skills.
- Heavy effects. Big animations and huge images make the page slow and harder to use.
- No README. A project with no explanation makes the reader guess what it does.
- Too many weak projects. Remove anything you wouldn't want to talk about for five minutes.
What should you do next?
Pick your best projects, write one card for each, and publish the site. Then get ready to talk about them out loud. Frontend developer interview questions shows what else interviews ask, and a mock interview lets you practice explaining your work under a clock. To keep building skills between projects, work through the React coding problems. For a second pair of eyes on your portfolio, you can book a paid 1:1 call.


