How isaiaha09/happyhourapp works
DiningDealz is a mobile-first local deals and venue discovery product, backed by a Django API and accompanied by a Next.js website. The main user journey is browse/filter venues, open a business profile, and use account or claim features; backend listing responses are assembled from configured and discovered sources, with durable edits kept in snapshots. The README documents these subsystem relationships, while sampled code confirms selected mobile API, storage, and signal behavior. Several feature modules are represented at their exact paths, but their internal calls were not sampled, so those links are omitted rather than inferred.
Main entry points: source_listings.py Listing normalization · api.ts API client · BrowseControls.tsx Browse and map · views.py Backend API
Components 22
Mobile experience
- App shell
mobile/App.tsx - Browse and map
mobile/src/screens/BrowseControls.tsx - Place details
mobile/src/screens/PlaceDetailScreen.tsx - API client
mobile/src/api.ts - Auth and claims
mobile/src/screens/ProfileFlowScreens.tsx - Profile dashboard
mobile/src/screens/DashboardScreen.tsx - Direct messages
mobile/src/screens/DirectMessagesScreen.tsx - Customer preferences
mobile/src/screens/CustomerPreferencesScreen.tsx - External planner
mobile/src/externalPlanner.ts
Listing and discovery
- Backend API
backend/places/views.py - Configured sources
backend/config/business_sources.py - Listing normalization
backend/places/services/source_listings.py - Listing snapshots
backend/places/models.py - Source importers
backend/places/services/importers - Discovery data
backend/config/discovered_places.json
Accounts and business workflow
- Account services
backend/places/services/account_profiles.py - Managed media
backend/places/services/media_storage.py - Admin workflows
backend/places/services/admin_operations.py
Website and services
- Public website
web/src/app/page.tsx - Website auth
web/src/app/api/auth/login/route.ts - Application database
Other components
- Mobile user
Connections 24
- Mobile user → App shell: uses
- App shell → Browse and map: shows
mobile/App.tsx - Browse and map → API client: requests listings
- API client → Backend API: calls API
- Backend API → Listing normalization: builds responses
- Listing normalization → Configured sources: normalizes
- Listing normalization → Discovery data: uses discovery data
- Listing normalization → Listing snapshots: applies durable edits
- Source importers → Discovery data: updates discovery data
- Browse and map → Place details: opens profile
- Mobile user → Auth and claims: signs in or claims
- Auth and claims → API client: submits account actions
- Mobile user → Profile dashboard: views profile
- Profile dashboard → API client: loads profile
- Mobile user → Direct messages: uses messaging
- Mobile user → Customer preferences: sets preferences
- Place details → External planner: opens planner
- Account services → Application database: reads and writes
- Listing snapshots → Application database: persists
- Managed media → Application database: records media
- Managed media → Application database: deletes stored files
backend/places/services/media_storage.py - Admin workflows → Listing snapshots: edits listings
- Public website → Mobile user: serves public pages
- Website auth → Backend API: authenticates