← Projects

Endoudle

Nostalgia with an API.

GoPostgreSQLgorilla/muxcolly

01Overview

Endoudle powers a competitive quiz game set in the Inazuma Eleven universe, challenging players on teams, characters and hissatsu techniques across quiz modes. It is a Go backend built the boring-reliable way: handlers, services and repositories behind clean interfaces, with entities and view models keeping the layers honest.

The fun part is where the data comes from. There is no official API, so the service scrapes the official zukan site with colly — behind a scraper interface, so a different source can be slotted in if the site ever goes down. Scraped data stages as JSON, then populates PostgreSQL through versioned golang-migrate migrations (characters, teams, hissatsus and their relations). Everything is driven from one binary with flags: --reset-db, --scrape=teams,characters,hissatsus, --populate-db.

02Architecture

SERVE quiz clients gorilla/mux 7 GET · :8080 services repositories pgx/v5 PostgreSQL migrate/v4 ×6 entities ⇄ viewmodels chars · teams · hissatsus INGEST zukan site colly scraper colly/v2 per-domain iface JSON staging --populate-db go run . --reset-db --scrape=teams,characters,hissatsus --populate-db 1 2 3 4 5 1 2 3 4
Serve path on top, ingest path below — one binary drives both.

03Stack

LanguageGo 1.25, single binary driven by CLI flags
HTTPgorilla/mux router, seven focused GET endpoints (random/list/info × characters, hissatsus, teams)
Scrapingcolly + goquery against the zukan site, behind per-domain scraper interfaces
StoragePostgreSQL via pgx; six golang-migrate migrations including join tables (character_teams, hissatsus2type)
ShapeEntities with hidden DB IDs, separate viewmodels with explicit mapping; uber zap logging, env config

04Under the hood

05Demo

Repository with setup instructions →