Build a Spring Social Network

Build Ironclad Commons, a neighborhood social network with Spring Boot, Thymeleaf, Tailwind, Spring Security, JPA, PostgreSQL, systemd, Nginx, VPS.

  • Difficulty Intermediate
  • Parts 12
  • Stack Spring Boot, Thymeleaf, Tailwind, Spring Security, JPA, PostgreSQL, systemd, Nginx, VPS

How this project works

Ironclad Commons is the Spring remake of Westloop: a neighborhood social network with accounts, profiles, follows, likes, comments, a following timeline, search, notices, and a real Ubuntu VPS deploy. Each numbered folder in fcc-spring-social is a working snapshot.

The stack, and why these tools

JobChoiceWhy
Language / frameworkJava, Spring Boot 3Spring Security is the adult auth stack. JPA unique constraints protect follows. Thymeleaf fragments + HTMX keep the UI server-rendered.
DatabasePostgreSQLFollows, likes, and comments need foreign keys and unique pairs. SQLite is only for the first laptop boot.
CSSTailwind CSSFeeds, avatars, and a sticky nav are layout-heavy. Utilities stay in the templates you already edit.
JavaScriptHTMX + Alpine.jsHTMX posts to @PostMapping controllers. Do not add a React admin.
AuthenticationSpring Security form loginformLogin() and BCryptPasswordEncoder. CSRF is on by default — send the token with HTMX headers.
Process / proxyJAR + systemd, Nginx, Let’s EncryptSame VPS shape as Westloop: one app process, Postgres on localhost, Nginx for TLS and static/media files.
Hosting / DNSHetzner Cloud CX22 (or Contabo / DigitalOcean), Cloudflare Registrar + DNSYou own the box. PaaS is easier and teaches less.
EmailConsole locally, Postmark in productionPassword reset must leave the laptop.

If you already finished the Spring blog, keep going — this project adds a social graph and a VPS ship, not another CRUD journal.

Open GitHub repo →

Parts in order

Work through the parts in sequence. Each lesson explains the ideas, then points you to a runnable GitHub snapshot.