How edwin-metcalf/portfolio works
This is a personal portfolio and game-project site. Visitors browse the portfolio, or enter the games area to play Space Invaders or view Dota 2 and Clash Royale statistics; the documented stats workflow syncs public game data into a local database and presents historical trends. The graph preserves the portfolio sections, both stats domains, matchup generation, and the playable game. Backend files were indexed as read but their implementation excerpts were not provided, so backend relationships are limited to those documented in the README.
Main entry points: routes/+page.svelte Portfolio page · dota/+page.svelte Dota dashboard · handlers.go HTTP handlers · api.ts API client
Components 22
Portfolio site
- Portfolio page
frontend/src/routes/+page.svelte - About and profile
frontend/src/lib/Aboutme.svelte - Coursework
frontend/src/lib/Courses.svelte - Portfolio sections
frontend/src/lib/Portfolio.svelte
Games and play
- Games landing
frontend/src/routes/games/+page.svelte - Space Invaders page
frontend/src/routes/games/space-invaders/+page.svelte - Game engine
frontend/src/routes/games/space-invaders/game.ts
Stats interface
- Stats landing
frontend/src/routes/games/game-stats/+page.ts - Dota dashboard
frontend/src/routes/games/game-stats/dota/+page.svelte - Clash Royale dashboard
frontend/src/routes/games/game-stats/clash-royale/+page.svelte - Friend matchup
frontend/src/routes/games/game-stats/clash-royale/matchup-generator/+page.svelte - Stats and charts
frontend/src/routes/games/game-stats/stats.ts - Stats cache
frontend/src/lib/store/GameStatsCache.svelte.ts - API client
frontend/src/lib/api.ts
Stats backend
- Go service entry
backend/main.go - HTTP handlers
backend/handlers.go - Dota stats service
backend/dotaController.go - Clash Royale service
backend/clashRoyaleController.go - Game data sync
backend/databaseSync.go - Stats database
backend/database.go
Other components
- Site visitor
- Public game APIs
Connections 26
- Site visitor → Portfolio page: visits
frontend/src/routes/+page.svelte - Portfolio page → About and profile: renders
frontend/src/routes/+page.svelte - Portfolio page → Portfolio sections: renders
frontend/src/routes/+page.svelte - Portfolio page → Coursework: renders
frontend/src/routes/+page.svelte - Site visitor → Games landing: opens games
README.md - Games landing → Space Invaders page: opens game
README.md - Site visitor → Space Invaders page: plays
README.md - Space Invaders page → Game engine: runs
frontend/src/routes/games/space-invaders/+page.svelte - Site visitor → Stats landing: opens stats
README.md - Stats landing → Dota dashboard: routes to
README.md - Stats landing → Clash Royale dashboard: routes to
README.md - Dota dashboard → API client: requests data
frontend/src/routes/games/game-stats/dota/+page.svelte - Clash Royale dashboard → API client: requests data
frontend/src/routes/games/game-stats/clash-royale/+page.svelte - Friend matchup → API client: posts tags
frontend/src/routes/games/game-stats/clash-royale/matchup-generator/+page.svelte - Dota dashboard → Stats and charts: builds charts
frontend/src/routes/games/game-stats/dota/+page.svelte - Clash Royale dashboard → Stats and charts: builds charts
frontend/src/routes/games/game-stats/clash-royale/+page.svelte - Friend matchup → Stats and charts: formats results
frontend/src/routes/games/game-stats/clash-royale/matchup-generator/+page.svelte - Dota dashboard → Stats cache: uses cache
frontend/src/routes/games/game-stats/dota/+page.svelte - API client → HTTP handlers: HTTP requests
- Go service entry → HTTP handlers: serves
README.md - HTTP handlers → Dota stats service: dispatches
- HTTP handlers → Clash Royale service: dispatches
- Dota stats service → Stats database: reads and writes
README.md - Clash Royale service → Stats database: reads and writes
README.md - Game data sync → Public game APIs: syncs data
README.md - Game data sync → Stats database: stores history
README.md