From Flutter to Spring Boot

What carried over from Flutter when I rebuilt this portfolio with Spring Boot, and how I kept the public site simple.

← All posts

I rebuilt this portfolio as I moved from Flutter development toward Java backend engineering. The original site used Next.js. I moved the public pages, project write-ups, blog, and contact form into one Spring Boot application. I kept the existing links so someone opening a saved project or blog post still lands in the right place.

What carried over from Flutter

In Flutter, I separate the widgets that render data from the logic that loads or updates it. An appointment list can render loading, success, and error states from its state-management layer. I applied that separation to the portfolio. Spring MVC controllers receive requests, services load content or handle business rules, and Thymeleaf templates render the result. I can change the layout of a blog card in its template while the content service keeps reading posts the same way.

How a public page is rendered

Project write-ups and blog posts live in Markdown alongside their titles, dates, and descriptions. The Java content service reads those files and prepares the article HTML and its table of contents. The controller looks up an article by its slug and hands it to the Thymeleaf view.

The lookup starts with the article slug.

@GetMapping("/blog/{slug}")
String post(@PathVariable String slug, Model model) {
    ContentEntry entry = content.post(slug)
            .orElseThrow(() -> new ResponseStatusException(HttpStatus.NOT_FOUND));
    model.addAttribute("entry", entry);
    return "post";
}

An unknown slug returns a 404 before the template renders.

Where sign-in belongs

A recruiter can open the portfolio, browse projects, read a post, and download the résumé from the first visit. The direct email link is public. When the optional contact form is enabled, Spring Security requires Google or GitHub sign-in before a visitor can submit it.

The site loads portfolio content from files and runs without a database. When configured, the contact form verifies a Cloudflare Turnstile challenge on the server and uses Resend to deliver the message.

Rebuilding the portfolio gave me practice tracing what happens after someone clicks. I could follow the route through the permission check, the service, and the response, then see how each decision affected the experience in the browser.