Java for Everyone — a study platform I built and run
Java for Everyone helps people prepare for the Oracle Certified Professional exams, Java SE 17 (1Z0-829) and Java SE 21 (1Z0-830). I am the only person behind it: I wrote the course, designed the product, built the API and run the server. This page explains the choices that matter.
Open the live site- Role
- Sole designer, developer and operator
- Year
- 2026
- Status
- In production, on my own VPS
- 29course chapters (15 for Java 17, 14 for Java 21)
- 265practice questions with explanations
- 3mock exams of 50 questions, graded on the server
- ~2 minat most, between passing checks on main and the new version online
The problem
Good OCP preparation is spread over thick books and paid mock exams. I wanted one place where the course and the practice questions are free to read, and where the full mock exams stay under control so that their questions are not simply copied around.
That gave two kinds of content with two different rules: a public course that must be fast and easy for search engines to read, and mock exams that need accounts, approval and server-side grading.
What I built
- A course written in Markdown and turned by a Python build script into the pages and data of the app, so that adding a chapter means adding a file.
- A Spring Boot 3.5 API on Java 21 with PostgreSQL and Flyway migrations: registration, login with a server-side session cookie, CSRF protection and hashed passwords.
- An approval flow: a student asks for access to a mock track, an administrator approves, refuses or revokes it, and the student sees each decision at the next visit.
- Mock exams that are served without their answers and graded on the server, either question by question in practice mode or all at once in exam mode, with the attempt history kept on the account.
- Course progress saved in the browser at once and synchronised with the account in the background, with the most recent change winning from one device to the next.
Decisions and trade-offs
- Answers never leave the server. The front end only holds a card per mock exam, and the CI fails if questions or answers ever find their way into it. The price is a round trip for each check in practice mode.
- Access is approved by hand. It keeps the mock questions from being handed out, at the cost of a small manual step for each new student.
- The course is public static HTML as well as the app. The app draws its screens with JavaScript under # addresses, which search engines and AI crawlers read poorly. So the build also writes plain pages for every chapter, with its own title, canonical address, structured data and a sitemap, and a script checks them in CI.
- Every mock answer was checked by compiling and running the code on JDK 17 and JDK 21, because a wrong answer in an exam course is worse than a missing one.
Running it
- Docker containers for the site (nginx), the API and PostgreSQL, behind a shared reverse proxy with HTTPS certificates from certbot, renewed every night.
- A daily database dump, kept for 14 days, plus a script on my own computer that pulls the backups off the server.
- Basic security headers and a real 404 page on the site container.
What I would say about the trade-offs
The deployment needs no secret stored in GitHub, which I like. The flip side is plain: whoever can merge to main controls what runs on the server, because the API is built there with Docker. For a one-person project that is the right deal, and it is written down in the README so that it is a choice, not a surprise.
From a commit to production
- 1Push or merge on main
- 2GitHub Actions: content build, site checks, backend tests with a real PostgreSQL
- 3All green: the production branch moves to that commit
- 4A timer on the VPS (every 2 minutes) fetches production, rebuilds and restarts what changed