← Back to projects

Mystery Query

JavaSpring BootAngularSQLAPI REST

Online detective game to learn SQL: every case is a real database, and players write real queries to unmask the culprit. A back-end teaching engine explains why a query is wrong (translated error, extra or missing columns and rows, silent traps such as = NULL) instead of simply rejecting it.

  • Each case runs in its own read-only in-memory H2 database: a guard rejects anything that is not a SELECT
  • Teaching engine: SQL error translation, comparison with the expected result and detection of silent traps (= NULL, WHERE instead of HAVING, missing comma…)
  • Player accounts with JWT, Google sign-in, email confirmation and brute-force protection; scores are computed on the back end only
  • Admin workshop to create cases, universes and daily challenges without redeploying
  • Deployed with Docker and automatic delivery through GitHub Actions