A static learning app for studying animal specimens (Präparate). Built for GitHub Pages.
- Multiple Choice Quiz: Identify the animal from 4 options (1 correct, 3 random from the same location)
- Flashcard Mode: View the image, then reveal the answer
- Location Filter: Select specimens by collection location (e.g. Ebersberg, Rosenheim)
# Generate data.json from the img/ directory
node build_data.js
# Serve with any static file server
npx serve .Then open http://localhost:3000.
build_data.jsscansimg/subdirectories, cleans filenames (strips prefixes likeSG2_V_, suffixes like_1or(2), and file extensions), and writesdata.json.index.htmlfetchesdata.jsonand renders the quiz/flashcard UI.
Pushes to main trigger a GitHub Actions workflow (.github/workflows/deploy.yml) that builds data.json and deploys to GitHub Pages.
build_data.js # Generates data.json from img/
index.html # Single-page learning app
data.json # Generated image metadata
img/
ebersberg/ # Specimen images (Ebersberg)
rosenheim/ # Specimen images (Rosenheim)
.github/workflows/
deploy.yml # GitHub Pages deployment