Project | Web & API, CI/CD
Java Backend Course: a Live Airbnb Backend
My work for a Java backend course, session by session, one pull request per day: Java and Maven, Spring MVC and Boot, JDBC and JPA, testing, Redis, Spring Security and OAuth 2, microservices and messaging, two projects (Splitwise and Airbnb), deployment with Docker, Flyway and Render, and AI tools ending in a RAG assistant built with only the JDK.
On 24 Nov 2026: 483 tests in 23 modules passed on JDK 17 and JDK 25 in CI; the Airbnb backend is live at https://airbnb-backend-u7lv.onrender.com and its smoke test (register, listing, search, booking, no double booking) passed against it.
Evidence checked 24 Nov 2026 | CI run on main
On this page
Problem and purpose
As a test engineer I test backends every day; this course is the other side: building them. I kept it to the same standard as my test frameworks: a README per topic, tests for every example, CI on two JDKs, and a real deployment at the end. The Airbnb backend (Sessions 21 to 24) is live at airbnb-backend-u7lv.onrender.com; it is an API, so it is used with curl or Postman.
Architecture
client ──HTTPS──► Render (TLS) ──► airbnb-backend (Spring Boot, prod profile)
│ users · listings · search · bookings · reviews · notifications
▼
PostgreSQL 18 (managed, not on the internet)
Flyway V1 schema · V2 exclusion constraint: no overlapping bookingsTechnology and tools
| Area | Tools |
|---|---|
| Language and build | Java 17 (CI also on JDK 25), Maven multi-module (one module per session with code) |
| Backend | Spring Boot 4, Spring MVC, Spring Data JPA, Spring Security (HTTP Basic, OAuth 2 with GitHub), Feign, Redis |
| Data | H2 for development, PostgreSQL 18 with Flyway in production |
| Delivery | Docker image built, smoke-tested and published to ghcr.io; Render blueprint (managed PostgreSQL + web service), deployed after the checks pass |
| Tests | JUnit, Mockito, Spring test slices, Testcontainers (PostgreSQL 18 for the production profile): 483 tests |
Engineering decisions and approach
- Double bookings are stopped twice: a locking read in the service and a PostgreSQL exclusion constraint on the date ranges, so even a race between two servers ends in 409
- The image that is deployed is the image that passed the smoke test in CI; Render deploys main only after its checks pass
- Readiness decides when a new version gets traffic; health endpoints are open, everything else needs a login
- Errors are Problem Details (400 with field errors, 401, 403, 404, 409)
- One module per session, so each topic builds and tests on its own
Test scope and execution approach
Project-specific checks and execution details documented in the repository:
- Two projects grown over several sessions: Splitwise (Sessions 12, 13, 17) and Airbnb (21 to 24)
- Airbnb: listings with search by city, dates, guests and price; bookings and cancellation; reviews after a stay; host notifications after commit
- Microservices with Feign and client-side load balancing; messaging and resilience
- AI sessions: prompt experiments, spec-driven development with generated acceptance tests, and a RAG course assistant with only the JDK
- A smoke test script that checks any running deployment through its API
Results with dated evidence
Historical repository or workflow evidence
CI run on main
On 24 Nov 2026: 483 tests in 23 modules passed on JDK 17 and JDK 25 in CI; the Airbnb backend is live at https://airbnb-backend-u7lv.onrender.com and its smoke test (register, listing, search, booking, no double booking) passed against it.
Evidence checked: | Open dated evidence
Evidence explorer
Static screenshots are labelled as images; dated workflow links identify the execution evidence and its check date.
Live: airbnb-backend-u7lv.onrender.com. Register with POST /api/users, then use that email and password as HTTP Basic login. It is on a free plan and sleeps when idle, so the first request can take about a minute.
Static material from the public repository. The linked verification record was checked 2026-11-24; that date is not a screenshot capture date.
Dated workflow record
Evidence checked 2026-11-24. Open CI run on main
Local setup and execution
mvnw.cmd verify :: all 23 modules, 483 tests
:: the Airbnb backend as in production
cd airbnb-backend && docker compose up --build
scripts/smoke-test.sh https://airbnb-backend-u7lv.onrender.comWorkflow and reports
Known limitations
- Course work: realistic projects, but small and without real users
- The live service is on a free plan: it sleeps when idle, and the free database expires after 30 days unless upgraded
- HTTP Basic login keeps the course simple; a public product would use tokens
- Course work: the projects are realistic but small, and the live Airbnb backend runs on a free plan (it sleeps when idle; the free database expires after 30 days unless upgraded).