Case study · Web + Java · 2019–Present
My personal corner of the web. Designed with an eye for detail, built with Spring Boot and self-hosted at home.


This is my personal website, showcasing my professional experience, projects and personal interests.
A Spring Boot 3 application in Java 21 that renders pages server-side with Thymeleaf. It greets visitors by their local time, keeps my years of experience up to date, delivers contact messages by e-mail and counts visits without storing personal data.
Self-hosted on a Mini PC home server running Docker Compose, with Traefik providing HTTPS. A single Gradle task builds the app and deploys it.
Designed in Bootstrap Studio with hand-written CSS animations, a system-aware dark mode and a touch of JS. A custom export script publishes every version and optimizes images, keeping pages light on every screen.
The website is a Spring Boot 3 application on Java 21 that renders every page server-side with Thymeleaf and serves its static assets directly. It runs as a container on the Azul Zulu 21 JRE, part of a Docker Compose stack on my home server that also hosts the Neo XO backend and its MariaDB database.
Traefik sits in front as the reverse proxy, routing the domain to the website container and terminating HTTPS with automatically issued and renewed Let's Encrypt certificates. The controller stays thin, delegating every concern to a dedicated service layer.
The home page greets every visitor according to their local time. The client IP is resolved from the proxy headers, located through the ipwho.is API and mapped to a time zone, falling back to server time whenever the lookup is unavailable.
Lookups use Java's built-in HttpClient with 2-second timeouts. Header-supplied addresses are treated as untrusted, so only public IP literals are resolved, and results are kept in a 24-hour LRU cache of up to 1,000 entries to minimize external calls.
Contact form submissions are validated and delivered through JavaMail over SMTP with STARTTLS. Sending runs on a background thread, so the visitor sees the confirmation page instantly while the message is dispatched.
Years of experience are computed on every request from my career start date with half-year precision, so the home page never goes stale.
A Spring MVC interceptor records page views into an append-only log. Bots and prefetches are filtered out and visitors are known only by a salted SHA-256 hash, while a private dashboard charts daily, weekly and monthly traffic.
Responses are gzip-compressed, images are re-encoded for the web and videos load lazily as they scroll into view, with shimmer placeholders while media arrives.
A few excerpts from the code that powers this page. Pick a file to explore.
@Controllerpublic class WebsiteController { private final MailService mailService; private final GreetingService greetingService; private final SiteTrafficLoggingService siteTrafficLoggingService; private final ExperienceService experienceService; // Dependencies arrive through constructor injection @GetMapping("/") public String getHome(HttpServletRequest request, Model model) { siteTrafficLoggingService.logSiteTraffic(request); greetingService.sayGreeting(model, GeolocationService.getClientIp(request)); experienceService.addExperienceYears(model); return HOME_PAGE; } @GetMapping("/projects/portfolio") public String getProjectsPortfolio() { return PROJECTS_PORTFOLIO_PAGE; } @GetMapping("/sendMail") public String sendMail(final HttpServletRequest request) { mailService.sendEmail(request); return EMAIL_SENT_PAGE; }}A thin controller: every route delegates to the service layer and simply returns the name of a Thymeleaf template.
@Configurationpublic class VisitTrackingConfig implements WebMvcConfigurer { private final VisitStatsService visitStatsService; @Override public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(new HandlerInterceptor() { @Override public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) { if (ex == null && response.getStatus() == HttpStatus.OK.value()) { visitStatsService.track(request); } } }).addPathPatterns("/", "/about", "/projects", "/projects/*", "/contact"); }}One interceptor counts successful views of the public pages, so the controllers stay free of tracking code.
public void track(final HttpServletRequest request) { final String userAgent = request.getHeader("User-Agent"); if (!"GET".equals(request.getMethod()) || userAgent == null || userAgent.isBlank() || BOT.matcher(userAgent).find() || isPrefetch(request)) { return; } final Instant time = clock.instant(); final String ip = GeolocationService.getClientIp(request); final String visitor = hash(ip + '|' + userAgent); // raw IPs are never stored final String referrer = referrer(request.getHeader("Referer"), request.getServerName()); writer.execute(() -> { final String country = geolocationService.getCountryByIp(ip).orElse(""); add(new Visit(time, request.getRequestURI(), country, visitor, referrer, device(userAgent))); });}private String hash(final String value) { try { final byte[] digest = MessageDigest.getInstance("SHA-256") .digest((salt + '|' + value).getBytes(StandardCharsets.UTF_8)); return HexFormat.of().formatHex(digest, 0, 8); } catch (NoSuchAlgorithmException e) { throw new IllegalStateException(e); }}Bots and prefetches are ignored, visitors are known only by a salted SHA-256 hash and the country lookup runs off the request thread.
private Optional<GeoLocation> lookup(final String ip) { if (!isPublicIp(ip)) { return Optional.empty(); } final CacheEntry cached = cache.get(ip); if (cached != null && cached.expiresAt().isAfter(Instant.now())) { return cached.location(); } try { final Optional<GeoLocation> location = fetch(ip); // HttpClient, 2-second timeouts cache.put(ip, new CacheEntry(location, Instant.now().plus(CACHE_TTL))); return location; } catch (Exception e) { log.error("Error getting geolocation for IP {}: {}", ip, e.getMessage()); return Optional.empty(); }}// Accept only IP literals (no DNS lookups) that are publicly routable.private static boolean isPublicIp(final String ip) { if (ip == null || !IP_LITERAL.matcher(ip).matches()) { return false; } try { final InetAddress address = InetAddress.getByName(ip); return !(address.isLoopbackAddress() || address.isSiteLocalAddress() || address.isLinkLocalAddress() || address.isAnyLocalAddress() || address.isMulticastAddress()); } catch (Exception e) { return false; }}Header-supplied addresses are untrusted: only public IP literals reach the geolocation API, and answers are cached for 24 hours.
@Servicepublic class ExperienceService { private static final LocalDate EXPERIENCE_START_DATE = LocalDate.of(2019, 8, 1); public void addExperienceYears(Model model) { final Period experience = Period.between(EXPERIENCE_START_DATE, LocalDate.now()); final int years = experience.getYears(); final String value = experience.getMonths() >= 6 ? years + ".5 years" : years + (years == 1 ? " year" : " years"); model.addAttribute("experienceYears", value); }}The experience counter on the home page is computed on every request, with half-year precision.
Pages are designed visually in Bootstrap Studio, complemented by hand-written CSS and animations.
A custom export script turns the exported pages into Thymeleaf templates, rewriting links and restoring dynamic bindings.
Images are resized and recompressed during export, keeping every page light.
Edits made in the IDE are written into a new design version, so design and code never drift apart.
Gradle packages the application into a single executable Spring Boot jar.
One Gradle task ships the jar and the Compose file over SSH and restarts the stack.
DYNAMIC
A personal greeting based on the visitor's local time, an experience counter that updates itself and a guided tour from idea to production.
CASE STUDIES
Detailed write-ups of my work, from architecture to user experience, like the page you are reading now.
CONNECTED
A validated form that lands straight in my inbox, alongside links to my professional profiles.
Layouts adapt from phones to wide desktop screens.
Scroll and hover effects built with AOS and custom CSS.
Runs on my own Mini PC home server.
HTTPS everywhere with automatic certificate renewal.
Follows your system, remembers your choice and never flashes.
Compressed responses, optimized images and lazy-loaded media.
Visit stats with no cookies and no stored IP addresses.
A career journey tour, tech stack bubbles and a CV timeline.