How redward42/tboi-bosses works
TBOI Bosses is a browser-based catalog for browsing The Binding of Isaac bosses. Users load a boss list, follow a boss link to its detail page, and the browser fetches the corresponding data from the Express API backed by PostgreSQL. A separate reset workflow rebuilds and seeds the table from the repository’s JSON data. The excerpts establish these API and database interactions; the HTML files are present in the tree, but their contents and script wiring were not sampled.
Main entry points: server.js HTTP routes · database.js Postgres connection pool · reset.js Table reset and seed · scripts.js List loader
Components 11
Browser experience
- Boss listing
public/index.html - List loader
public/scripts.js - Boss detail page
public/detail.html - Detail loader
public/detail.js
API and setup
- HTTP routes
server/server.js - Environment setup
server/config/dotenv.js - Table reset and seed
server/config/reset.js
Data storage
- Postgres connection pool
server/config/database.js - Boss seed data
server/data/items.json - PostgreSQL
Other components
- Visitor
Connections 9
- Visitor → Boss listing: opens
README.md - Visitor → Boss detail page: opens
README.md - List loader → HTTP routes: fetches list
public/scripts.js - Detail loader → HTTP routes: fetches detail
public/detail.js - HTTP routes → Postgres connection pool: queries
server/server.js - HTTP routes → Environment setup: loads config
server/server.js - Table reset and seed → Postgres connection pool: creates and seeds
server/config/reset.js - Table reset and seed → Boss seed data: imports
server/config/reset.js - Postgres connection pool → PostgreSQL: connects to
server/config/database.js