How febrifelis/locatrip-web works
Locatrip is a travel-booking web frontend. The main journey is trip search, trip details, seat/passenger selection and booking confirmation, followed by ticket access; account registration and login establish the authenticated state used across the app. Wallet top-ups, profile management and ticket reviews are additional product areas. The sampled files show page-to-API and page-to-auth-store usage; the backend is represented as an external API service. Some route and API details are unsampled, so their connections are omitted where not evidenced.
Main entry points: api.ts HTTP API Client · authStore.ts Auth State · Navbar.tsx Navigation · page.tsx Login
Components 16
Trip Discovery
- Home
app/page.tsx - Trip Search
app/search/page.tsx - Trip Details
app/trips/[id]/page.tsx
Booking & Tickets
- Booking Checkout
app/trips/[id]/book/page.tsx - Tickets & Reviews
app/tickets/page.tsx
Account & Wallet
- Login
app/auth/login/page.tsx - Registration
app/auth/register/page.tsx - Password Recovery
app/auth/forgot-password/page.tsx - Profile
app/profile/page.tsx - Wallet
app/wallet/page.tsx
Shared Client
- Navigation
components/layout/Navbar.tsx - App Providers
lib/providers.tsx - Auth State
store/authStore.ts - HTTP API Client
lib/api.ts
Other components
- Traveler
- Locatrip API
Connections 24
- Traveler → Trip Search: searches trips
app/search/page.tsx - Trip Search → HTTP API Client: queries trips
app/search/page.tsx - Trip Search → Trip Details: opens trip
app/search/page.tsx - Trip Details → HTTP API Client: loads trip
app/trips/[id]/page.tsx - Booking Checkout → HTTP API Client: books and confirms
app/trips/[id]/book/page.tsx - Traveler → Login: signs in
app/auth/login/page.tsx - Traveler → Registration: registers
app/auth/register/page.tsx - Login → HTTP API Client: authenticates
app/auth/login/page.tsx - Registration → HTTP API Client: creates account
app/auth/register/page.tsx - Login → Auth State: sets session
app/auth/login/page.tsx - Registration → Auth State: sets session
app/auth/register/page.tsx - Login → Password Recovery: links to recovery
app/auth/login/page.tsx - Profile → HTTP API Client: logs out
app/profile/page.tsx - Profile → Auth State: reads and clears
app/profile/page.tsx - Wallet → HTTP API Client: reads and tops up
app/wallet/page.tsx - Wallet → Auth State: reads user
app/wallet/page.tsx - Tickets & Reviews → HTTP API Client: loads bookings
app/tickets/page.tsx - Tickets & Reviews → Auth State: reads user
app/tickets/page.tsx - Navigation → Auth State: reads session
components/layout/Navbar.tsx - Navigation → Trip Search: links to search
components/layout/Navbar.tsx - Navigation → Tickets & Reviews: links to tickets
components/layout/Navbar.tsx - Navigation → Wallet: links to wallet
components/layout/Navbar.tsx - App Providers → Navigation: renders
app/layout.tsx - HTTP API Client → Locatrip API: sends HTTP requests
lib/api.ts