How redward42/web103_unit3_project works
UnityGrid Plaza is a React app for browsing locations and event listings, backed by an Express API and PostgreSQL. The main user flow is browser → location list → location detail route; a separate route shows all events. The README also describes per-location event listings and countdowns, while the sampled detail page implements its own countdown display. The excerpts show server route/controller/database wiring, but do not establish how the client event service reaches the API, so that connection is omitted.
Main entry points: App.jsx App routes · database.js Connection pool · server.js HTTP server · main.jsx Client mount
Components 17
React client
- Client mount
client/src/main.jsx - App routes
client/src/App.jsx - Locations page
client/src/pages/Locations.jsx - Location events
client/src/pages/LocationEvents.jsx - Events page
client/src/pages/Events.jsx - Event component
client/src/components/Event.jsx - Locations service
client/src/services/LocationsAPI.jsx - Events service
client/src/services/EventsAPI.jsx
Express API
- HTTP server
server/server.js - Event routes
server/routes/events.js - Location routes
server/routes/locations.js - Event queries
server/controllers/events.js - Location queries
server/controllers/locations.js
PostgreSQL access
- Connection pool
server/config/database.js
Other components
- Visitor
- Browser
- PostgreSQL
Connections 14
- Visitor → Browser: uses
- Browser → Client mount: loads
client/src/main.jsx - Client mount → App routes: mounts
client/src/main.jsx - App routes → Locations page: routes to
client/src/App.jsx - App routes → Location events: routes to
client/src/App.jsx - App routes → Events page: routes to
client/src/App.jsx - Locations page → Locations service: fetches via
client/src/pages/Locations.jsx - HTTP server → Event routes: mounts
server/server.js - HTTP server → Location routes: mounts
server/server.js - Event routes → Event queries: dispatches
server/routes/events.js - Location routes → Location queries: dispatches
server/routes/locations.js - Event queries → Connection pool: queries through
server/controllers/events.js - Location queries → Connection pool: queries through
server/controllers/locations.js - Connection pool → PostgreSQL: connects to
server/config/database.js