How takos-34/fnaticdle works
FnaticDLE is a daily Fnatic-player trivia game. A fan loads the game, receives player and attribute data, makes guesses, and sees attribute-by-attribute feedback; successful play reveals a victory view with a share option. The server selects a daily player, serves the game, answers API requests from MySQL, and periodically writes daily logs. The frontend also keeps guesses locally until midnight. The map reflects the shown source; unsampled HTML and styles are included as product components, but their detailed behavior is not inferred.
Main entry points: app.js Express server · db.js MySQL pool · index.js Guessing UI · index.html Game page
Components 17
Game client
- Game page
public/index.html - Game assets
public/assets - Game styling
public/styles/index.css - Guessing UI
public/scripts/index.js - Guess feedback
public/scripts/index.js - Local progress
public/scripts/index.js - Victory and share
public/scripts/index.js
Game server
- Express server
src/app.js - Page routes
src/routes/index.js - Game API
src/app.js - Daily selection
src/app.js - Daily logs
src/app.js
Game data
- MySQL pool
src/config/db.js - Player records
Other components
- Fnatic fan
- MySQL service
- X sharing
Connections 19
- Fnatic fan → Game page: plays
README.md - Express server → Game page: serves static
src/app.js - Express server → Page routes: mounts routes
src/app.js - Express server → MySQL pool: uses
src/app.js - Guessing UI → Game API: requests data
public/scripts/index.js - Game API → MySQL pool: queries
src/app.js - MySQL pool → MySQL service: connects
src/config/db.js - MySQL service → Player records: stores
- Page routes → Game page: serves home
src/routes/index.js - Game API → Guess feedback: returns feedback
public/scripts/index.js - Guessing UI → Local progress: restores guesses
public/scripts/index.js - Guessing UI → Guess feedback: renders response
public/scripts/index.js - Guess feedback → Victory and share: shows victory
public/scripts/index.js - Victory and share → X sharing: shares result
public/scripts/index.js - Express server → Daily selection: starts selection
src/app.js - Express server → Daily selection: schedules selection
src/app.js - Express server → Daily logs: schedules logs
src/app.js - Daily selection → MySQL pool: selects player
src/app.js - Daily logs → Daily selection: logs chosen player
src/app.js