How keeganknudsen/first-chair works
First Chair is a skiing blog whose current visitor workflow is to browse a post list, open a post by slug, and read its content. The React client fetches post data from an Express API backed by PostgreSQL; the API also exposes a database health check. The graph includes the documented migration and seed workflows. Relationship evidence is limited to the README and the source excerpts and index provided; deployment hosts are shown only where the README documents their roles.
Main entry points: db.ts Postgres pool · App.tsx App routes · app.ts Express app · main.tsx React entry
Components 17
Blog client
- React entry
client/src/main.tsx - App routes
client/src/App.tsx - Post list page
client/src/pages/PostListPage.tsx - Post detail page
client/src/pages/PostPage.tsx - Post API client
client/src/api.ts
API service
- Express app
server/src/app.ts - API startup
server/src/index.ts - Post endpoints
server/src/routes/posts.ts - Database health
server/src/app.ts
Post data
- Postgres pool
server/src/db.ts - Post database
Database setup
- Migration runner
server/src/migrate.ts - Post schema
server/migrations/001_create_posts.sql - Seed posts
server/src/seed.ts
Other components
- Blog visitor
- Vercel hosting
- Render API hosting
Connections 19
- Blog visitor → React entry: opens blog
README.md - React entry → App routes: renders
client/src/main.tsx - App routes → Post list page: routes to
client/src/App.tsx - App routes → Post detail page: routes to
client/src/App.tsx - Post list page → Post API client: fetches list
client/src/pages/PostListPage.tsx - Post detail page → Post API client: fetches post
client/src/pages/PostPage.tsx - Post API client → Post endpoints: requests posts
README.md - API startup → Express app: starts
server/src/index.ts - Express app → Post endpoints: mounts routes
server/src/app.ts - Express app → Database health: defines endpoint
server/src/app.ts - Post endpoints → Postgres pool: queries
server/src/routes/posts.ts - Database health → Postgres pool: checks connection
server/src/app.ts - Postgres pool → Post database: queries
README.md - Migration runner → Postgres pool: runs migrations
server/src/migrate.ts - Migration runner → Post schema: applies SQL
server/src/migrate.ts - Seed posts → Postgres pool: upserts posts
server/src/seed.ts - Seed posts → Post database: populates
- Vercel hosting → React entry: serves client
README.md - Render API hosting → API startup: hosts API
README.md