LeetCode Tracker
A LeetCode progress API and the dashboard that uses it.
| Part | Path | Stack | Live |
|---|---|---|---|
| API | be/leetcode-tracker |
Java 21, Spring Boot, PostgreSQL, Docker, Cloud Run | Swagger UI |
| Dashboard | fe |
HTML, CSS, JavaScript, GitHub Pages | yousefelghoul.dev/leetcode-tracker |
How it fits together
The dashboard calls GET /api/v1/tracker?username=... to show solved counts per difficulty and the current month’s heatmap, and POST /api/v1/visit when you open LeetCode from it. The API fetches live statistics from LeetCode’s GraphQL endpoint, stores daily snapshots in PostgreSQL, and uses JWT accounts so only the owner can clear their heatmap.
Deployment
Each part deploys by itself when its folder changes on main:
be/leetcode-tracker/**runsdeploy-cloud-run.yml: tests, Docker Hub image push, Cloud Run deploy.fe/**runsdeploy-pages.yml: publishes the folder to GitHub Pages.
See each folder’s README for setup and details.