How noonsae/dogo_project works
DoGo is a lodging marketplace connecting travelers with accommodation providers. Its central traveler journey is search and filter hotels, inspect a property and its reviews/rooms, then book and pay; users can also manage favorites, bookings, reviews, and inquiries. Providers register and manage hotels, rooms, policies, bookings, and inquiries, while administrators oversee platform operations. The graph combines README-documented capabilities with specific source-indexed calls; unsampled route and page internals are not assumed beyond those documented capabilities.
Main entry points: supabase-server.ts Server Supabase client · ReviewsModal.tsx Review presentation · route.ts Inquiry handling · supabase-client.ts Browser Supabase client
Components 34
Hotel discovery
- Home and offers
src/app/page.tsx - Search controls
src/components/ui/search/SearchBox.tsx - Search state
src/store/useSearchStore.ts - Stay-date calculation
src/utils/calculator/dateCalculator.ts - Flexible-date selection
src/utils/calculator/randomStayDatesCalculator.ts - Hotel results and filters
src/app/hotel-list/page.tsx - Hotel details and rooms
src/app/hotel-list/[id]/page.tsx - Review presentation
src/components/ui/hotel-review/ReviewsModal.tsx - Review icon
src/components/ui/icon/ReviewThumbUpIcon.tsx - Modal close icon
src/components/ui/icon/CloseButtonIcon.tsx
Identity and accounts
- Sign-in and registration
src/app/(auth)/sign-in/page.tsx - Authentication actions
src/actions/auth.ts - Registration action
src/app/(auth)/sign-up/actions/handleSignupAction.ts
Booking and payment
- Booking flow
src/app/booking/[id]/page.tsx - Toss payment UI
src/app/booking/_components/TossPaymentsButton.tsx - Payment verification
src/app/api/payments/verify.ts
Marketplace operations
- User account management
src/app/my-page/user/booking/page.tsx - Provider management
src/app/my-page/business/hotel/page.tsx - Administrator management
src/app/my-page/admin/page.tsx - Inquiry handling
src/app/api/inquiries/route.ts - Favorite handling
src/app/api/favorites/route.ts
Application platform
- Review data types
src/types/supabase/review-type.ts - Service data hook
src/hooks/hotel/useServices.ts - Service data fetch
src/utils/api/fetch/fetchServices.ts - User data fetch
src/utils/api/fetch/fetchUserData.ts - Booking name lookup
src/utils/api/fetch/fetchBookingHotelNameAndRoomName.ts - Browser Supabase client
src/supabase/supabase-client.ts - Server Supabase client
src/supabase/supabase-server.ts - Supabase schema types
src/types/supabase/supabase-type.ts - Hotel data types
src/types/supabase/hotel-type.ts - Icon props type
src/types/icon/icon-type.ts - Supabase data service
Other components
- Traveler
- Toss Payments
Connections 37
- Traveler → Home and offers: opens
- Home and offers → Search controls: starts search
- Search controls → Hotel results and filters: submits criteria
- Hotel results and filters → Hotel details and rooms: selects hotel
- Hotel details and rooms → Booking flow: starts booking
- Booking flow → Toss payment UI: continues to payment
- Toss payment UI → Toss Payments: requests payment
- Toss payment UI → Payment verification: verifies payment
- Traveler → Sign-in and registration: signs in or up
- Sign-in and registration → Authentication actions: invokes auth
- Sign-in and registration → Registration action: registers
- Traveler → User account management: manages account
- Traveler → Favorite handling: manages favorites
- Traveler → Inquiry handling: submits inquiry
- Provider management → Inquiry handling: replies to inquiry
- Traveler → Provider management: provider manages listings
- Administrator management → Inquiry handling: oversees inquiries
- Search controls → Search state: updates criteria
- Search state → Stay-date calculation: calculates stay
src/store/useSearchStore.ts - Search state → Flexible-date selection: chooses flexible dates
src/store/useSearchStore.ts - Hotel details and rooms → Review presentation: presents reviews
- Review presentation → Review icon: renders
src/components/ui/hotel-review/ReviewsModal.tsx - Review presentation → Modal close icon: renders
src/components/ui/hotel-review/ReviewsModal.tsx - Review presentation → Review data types: uses review type
src/components/ui/hotel-review/ReviewsModal.tsx - Service data hook → Service data fetch: queries with
src/hooks/hotel/useServices.ts - Service data fetch → Browser Supabase client: creates client
src/utils/api/fetch/fetchServices.ts - User data fetch → Browser Supabase client: creates client
src/utils/api/fetch/fetchUserData.ts - Browser Supabase client → Supabase schema types: types client
src/supabase/supabase-client.ts - Server Supabase client → Supabase schema types: types client
src/supabase/supabase-server.ts - Inquiry handling → Server Supabase client: creates client
src/app/api/inquiries/route.ts - Favorite handling → Server Supabase client: creates client
src/app/api/favorites/route.ts - Authentication actions → Server Supabase client: uses client
src/actions/auth.ts - Supabase data service → Hotel data types: stores typed records
- Supabase data service → Review data types: stores typed records
- Supabase data service → Browser Supabase client: serves browser client
- Supabase data service → Server Supabase client: serves server client
- Modal close icon → Icon props type: uses props type
src/components/ui/icon/CloseButtonIcon.tsx