How ritika0510/board-game_night-planner works
BoardNight is a board-game collection and game-night coordination application. Users enter through the React client, navigate to account and planning pages, and—where shown—those pages call the Express API; route handlers query PostgreSQL. The graph preserves the documented authentication, borrowing, profile, and audit capabilities, but source excerpts do not show every page’s API calls. The tree also lists games.route.js while src/app.js imports games.routes.js, so that route mount is not mapped as a confirmed connection.
Main entry points: App.jsx Page router · auth.routes.js Authentication & audit · app.js Express app · db.js PostgreSQL pool
Components 18
React client
- Page router
frontend/src/App.jsx - Home
frontend/src/pages/Home.jsx - Login
frontend/src/pages/Login.jsx - Signup
frontend/src/pages/Signup.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - Game collection
frontend/src/pages/MyGames.jsx - Borrowed games
frontend/src/pages/Borrowed.jsx - Game planner
frontend/src/pages/GamePlanner.jsx - Profile & security
frontend/src/pages/Profile.jsx
REST API
- HTTP server
src/server.js - Express app
src/app.js - Authentication & audit
src/routes/auth.routes.js - Collection routes
src/routes/games.route.js - Game-night routes
src/routes/gameNights.routes.js - Error handler
src/middleware/errorHandler.js
Persistence
- PostgreSQL pool
src/db.js - PostgreSQL
Other components
- BoardNight user
Connections 23
- BoardNight user → Page router: uses
frontend/src/App.jsx - Page router → Home: routes to
frontend/src/App.jsx - Page router → Login: routes to
frontend/src/App.jsx - Page router → Signup: routes to
frontend/src/App.jsx - Page router → Dashboard: routes to
frontend/src/App.jsx - Page router → Game collection: routes to
frontend/src/App.jsx - Page router → Game planner: routes to
frontend/src/App.jsx - Page router → Borrowed games: routes to
frontend/src/App.jsx - Page router → Profile & security: routes to
frontend/src/App.jsx - HTTP server → Express app: starts
src/server.js - Game collection → Collection routes: calls API
frontend/src/pages/MyGames.jsx - Game planner → Game-night routes: calls API
frontend/src/pages/GamePlanner.jsx - Profile & security → Authentication & audit: changes password
frontend/src/pages/Profile.jsx - Login → Authentication & audit: authenticates
README.md - Signup → Authentication & audit: registers
README.md - Profile & security → Authentication & audit: requests audit history
README.md - Express app → Authentication & audit: mounts routes
src/app.js - Express app → Game-night routes: mounts routes
src/app.js - Express app → Error handler: handles errors
src/app.js - Authentication & audit → PostgreSQL pool: queries
src/routes/auth.routes.js - Game-night routes → PostgreSQL pool: queries
src/routes/gameNights.routes.js - Collection routes → PostgreSQL pool: queries
src/routes/games.route.js - PostgreSQL pool → PostgreSQL: accesses
src/db.js