Back to all projects

JobTrackr API

A REST API for tracking job applications, with JWT login, per-user ownership, status history and statistics computed in SQL.

Status
Feature complete, Docker image published to GHCR
Tests
233 test methods across unit, controller, repository and full integration tests
Stack
Java 21, Spring Boot 4.1, Spring Security, JPA, Flyway, PostgreSQL 17, Testcontainers, Docker
Code on GitHub
AppliedInterviewingOfferRejectedinvalid move → 409 Conflict

Demo

Demo coming soon. A one-minute walkthrough of JobTrackr API will go here.

Until then, the code and the README are on GitHub.

What it does

Users register, log in with a JWT and manage their own job applications: create, edit, delete, change status and see the history of every status change. Search supports filters, paging and sorting. A stats endpoint counts applications per status and lists the top companies, and an admin endpoint shows totals. The domain started as plain Java in my Java Foundations study repo and was ported to Spring Boot here.

Architecture

A layered Spring Boot app: controllers, services, repositories and JPA entities, with request and response records as DTOs. Spring Security runs as an OAuth2 resource server that validates HS256 tokens. Four Flyway migrations build the schema, ending with an owner column on every application. CI builds and tests on every push and publishes a Docker image to the GitHub Container Registry from main.

The hard part

Ownership has to be impossible to get wrong. The owner ID always comes from the token’s subject, never from the request, and every query filters by owner. Another user’s application returns 404, exactly like one that doesn’t exist, so the API doesn’t reveal which IDs are real. OwnershipApiIntegrationTest checks this over real HTTP.

Status changes follow fixed rules: APPLIED can move to INTERVIEWING or REJECTED, INTERVIEWING to OFFER or REJECTED, and OFFER and REJECTED are final. An invalid move is a 409, and every valid move writes a history row in the same transaction.

Decisions

Testing

28 test classes with 233 test methods: model and DTO unit tests, Mockito service tests, @WebMvcTest controller tests, @DataJpaTest repository tests on Testcontainers PostgreSQL, and full-app integration tests over HTTP for auth, ownership and the production profile.

Next

It isn’t deployed publicly right now. Refresh tokens, a role-management endpoint, rate limiting and a coverage threshold are the missing pieces.