Building a Full-Stack Portfolio with React and ASP.NET Core
When I decided to rebuild my portfolio, I set one rule: it had to be a real application, not a static page. A portfolio is the first thing people see when they look me up, so it should show how I build software, not just describe it.
This post walks through what I built, how it fits together, and the bugs that taught me the most along the way.
Why I built this
Most of my professional work happens inside larger platforms: tools that extend engineering software rather than standalone web apps. That work belongs to my employer, so I can't show it. I needed a project of my own that covers the full path: designing an API, modelling data, building a frontend, deploying both, and keeping them running.
So the portfolio itself became the project. It has a backend, a database, an admin panel, an AI assistant and a deployment pipeline. Everything I'd expect from a small production app.
The tech stack
I chose ASP.NET Core because C# and .NET are what I use every day, and I wanted the backend to reflect that. MongoDB fits the content well: projects, blog posts, contact messages and chat transcripts are all self-contained documents.
An earlier version of the frontend was a client-side React app built with Vite. I later moved it to TanStack Start so pages could be rendered on the server. More on why in the SEO section.
How it fits together
The frontend never talks to MongoDB or any third-party API directly. Everything goes through the ASP.NET Core API, which keeps secrets on the server and gives me one place to validate input.
The API is small and conventional:
GET /api/projectsandGET /api/blogserve public contentPOST /api/contactvalidates messages with FluentValidation, saves them and emails mePOST /api/chatruns the AI assistant- Create, update and delete endpoints are protected with JWT authentication for the admin panel
GET /sitemap.xmlbuilds the sitemap straight from the database
Designing it like an IDE
The design borrows the structure of a code editor: an activity bar on the left, editor tabs along the top and a status bar at the bottom. The rule was that none of it is decoration. The activity bar and tabs are the real navigation, the active tab follows your scroll position, and opening a blog post opens it as a new "file" tab.
The AI assistant
The most fun part was the chatbot that answers questions about my work. It's also the part that changed most. It started on Anthropic's Claude, moved to OpenAI's GPT-4o mini, and now runs on Google Gemini. Because the backend owns both the prompt and the API call, every switch stayed inside the backend and the frontend never noticed.
A few decisions make it useful rather than gimmicky:
- Grounded in facts. The system prompt holds my real experience, skills and projects, with explicit rules: don't invent skills or numbers, be honest about what I'm still learning, and keep employer-owned work confidential.
- Bounded. The endpoint is public and backed by a paid API, so the backend caps message length and how much history is sent to the model.
- Logged. Each conversation is saved to MongoDB, and I get an email when a new one starts. The admin panel shows full transcripts, which tells me what people actually want to know.
When the model got slow
One day the chatbot simply stopped answering. The model I was using was overloaded: a two-sentence reply took over 20 seconds, most of it spent on hidden "thinking", and the next request failed with a 503. The website gave up long before Gemini replied.
The fix was a lighter model with minimal thinking, which brought replies down to about two seconds. Each attempt also got its own timeout, plus an automatic fallback to a second model when the first is overloaded:
Visitors now get an answer in a few seconds, even when one model is having a bad day.
Making it SEO-friendly
A portfolio only helps if people can find it, and a client-side React app shows search engines an almost empty page. That's what pushed me to TanStack Start:
- The home page is prerendered at build time, so crawlers get real HTML with my projects and posts.
- Blog posts and project pages are server-rendered with their own titles, descriptions, Open Graph tags and structured data (JSON-LD for
Person,BlogPostingand breadcrumbs). They're cached at the edge for a few minutes, so edits in the admin panel go live without a redeploy. - The sitemap and RSS feed are generated from MongoDB, so new posts are picked up automatically.
Performance matters for search too. The chat widget's code (Markdown rendering, syntax highlighting and more) turned out to be 72% of the JavaScript on the home page, even though most visitors never open it. Now it only downloads the first time someone reaches for the chat.
The admin panel
Content lives in the database, not in code. A JWT-protected admin panel lets me add and edit projects and blog posts (with drafts), read contact messages and review chat transcripts. This post was written there.
Lessons from the bugs
The bugs taught me more than the features did:
- A CSS animation that broke
position: fixed. The chat button only appeared when you scrolled to the very bottom of the page. The cause was the page's load animation: withanimation-fill-mode: both, the main element kept atransformafter the animation ended, and anytransformmakes an element the containing block for its fixed-position children. The one-word fix was changingbothtobackwards. - A one-letter typo that silently stopped email. The contact form said "Thanks!" but no email arrived. My configuration had
FormEmailinstead ofFromEmail, so the sender address was empty and the email provider rejected every message. The form caught the error and carried on, so nothing looked wrong. The lesson: validate configuration when the app starts, not when a user notices something missing. - Free hosting shares more than servers. I briefly showed live GitHub stats fetched by the backend. On shared hosting, GitHub's limit for anonymous requests is shared with every other app on the same IP address, so most numbers came back empty. I replaced that panel with a Skills section: simpler, and it says more about what I can do.
How I work with AI tools
I used AI coding tools heavily on this project, for implementation as much as for the chatbot. My job was the part that doesn't delegate well: deciding the architecture, reviewing every change, debugging problems like the ones above and integrating the pieces. That's how I work day to day too, and it's a big part of how one person can ship something this complete.
What's next
Next up is a save-for-later tool that resurfaces links and notes at the moment they become useful. I'll build it in public and write about it here.
If you're building something similar or have questions about the stack, ask the assistant on this site or reach out through the contact section. The code is on .