How khasan013/dbms_frontend- works
Campus Crate is a campus community app for browsing and publishing lost-and-found, marketplace, housing, and food posts, with search, accounts, vendor, and admin areas. Users enter through the routed app; domain pages fetch data through a shared API client, while post forms publish content and listings are presented as cards. The sampled code confirms key search, housing, post-creation, and header interactions. Other product areas are represented from the source index and route tree; their internal behavior was not sampled, so uncertain links are omitted.
Main entry points: routeTree.gen.js Route registry · api.js API client · HomePage.jsx Home feed · SearchPage.jsx Unified search
Components 21
App routing
- App router
src/router.jsx - Route registry
src/routeTree.gen.js - App layout
src/layouts/AppLayout.jsx - Site header
src/components/site-header.jsx
Community listings
- Home feed
src/pages/user/HomePage.jsx - Unified search
src/pages/user/SearchPage.jsx - Housing listings
src/pages/user/ToLetPage.jsx - Food directory
src/pages/user/FoodPage.jsx - Listing details
src/pages/user/ListingDetailsPage.jsx - Other listing areas
src/pages/user - Create post
src/components/create-post-dialog.jsx - Listing card
src/components/listing-card.jsx
Accounts and operations
- Account pages
src/pages/user - Admin console
src/pages/admin/AdminPage.jsx - Vendor dashboard
src/pages/user/VendorDashboardPage.jsx - Auth guard
src/components/require-auth.jsx
Shared platform
- API client
src/services/api.js - Refresh polling
src/utils/use-polling.js - Browser session
Other components
- Campus user
- Campus backend
Connections 22
- Campus user → App router: opens app
- App router → Route registry: loads routes
src/router.jsx - Route registry → App layout: roots routes
- Route registry → Home feed: routes to
- Route registry → Unified search: routes to
- Route registry → Listing details: routes to
- Route registry → Account pages: routes to
- Route registry → Admin console: routes to
- Route registry → Vendor dashboard: routes to
- App layout → Site header: renders
src/layouts/AppLayout.jsx - Site header → API client: requests data
src/components/site-header.jsx - Site header → Create post: opens form
src/components/site-header.jsx - Home feed → API client: loads listings
src/pages/user/HomePage.jsx - Home feed → Refresh polling: refreshes with
src/pages/user/HomePage.jsx - Home feed → Listing card: renders
src/pages/user/HomePage.jsx - Unified search → API client: fetches categories
src/pages/user/SearchPage.jsx - Unified search → Refresh polling: refreshes with
src/pages/user/SearchPage.jsx - Unified search → Listing card: renders
src/pages/user/SearchPage.jsx - Housing listings → API client: loads and publishes
src/pages/user/ToLetPage.jsx - Create post → API client: uploads and publishes
src/components/create-post-dialog.jsx - API client → Campus backend: sends requests
src/services/api.js - API client → Browser session: reads and writes
src/services/api.js