How d1da-1103/rocket24h works
Rocket24h is a place-and-visit memory journal: users choose or create a Place, record a Spot with photos, rating, price, caption, visit date and sharing/location privacy, then revisit entries through feeds, profiles and maps. Friends, likes, saved places and notifications support selective sharing and discovery. The graph combines sampled calls and SOURCE INDEX references with README-documented capabilities; unsampled page and service internals are represented only at their supported paths, so some links are documented rather than source-verified.
Main entry points: app/page.tsx Activity feed · SpotCard.tsx Spot display · spots.ts Spot data · new/page.tsx Create a Spot
Components 24
User experience
- Sign-in and profile
src/features/auth/AuthContext.tsx - Activity feed
src/app/page.tsx - Create a Spot
src/app/spots/new/page.tsx - Place picker
src/components/PlacePicker.tsx - Personal map
src/app/map/page.tsx - Interactive map
src/components/map/LeafletMapInner.tsx - Spot display
src/components/SpotCard.tsx - Spot detail
src/app/spots/[id]/page.tsx - Place detail
src/app/places/[id]/page.tsx - User profile
src/app/users/[uid]/page.tsx - Friends
src/app/friends/page.tsx - Notifications
src/app/notifications/page.tsx
Domain and data
- Feed loading
src/features/feed/feed-loader.ts - Spot data
src/lib/data/spots.ts - Place data
src/lib/data/places.ts - Social data
src/lib/data/friends.ts - Likes and saves
src/lib/data/likes.ts - Media URLs
src/features/media/useMediaUrls.ts - Geospatial search
src/lib/geo/index.ts
Server operations
- Friend API
src/app/api/friends/route.ts - Friend operations
src/server/friends.ts
External platform
- Firebase services
- Map tiles
Other components
- User
Connections 30
- User → Sign-in and profile: signs in
- User → Activity feed: browses
- User → Create a Spot: records visit
- Create a Spot → Place picker: selects place
src/app/spots/new/page.tsx - Place picker → Place data: finds nearby
src/components/PlacePicker.tsx - Place data → Geospatial search: queries bounds
src/lib/data/places.ts - Create a Spot → Spot data: creates Spot
src/app/spots/new/page.tsx - Spot data → Firebase services: writes records and media
src/lib/data/spots.ts - Activity feed → Feed loading: loads feed
src/app/page.tsx - Feed loading → Spot data: fetches entries
src/features/feed/feed-loader.ts - Feed loading → Firebase services: reads data
src/features/feed/feed-loader.ts - Activity feed → Social data: loads friends
src/app/page.tsx - Activity feed → Spot display: renders entries
src/app/page.tsx - Spot display → Media URLs: resolves images
src/components/SpotCard.tsx - Media URLs → Firebase services: resolves storage paths
- Spot display → Spot data: updates visibility
src/components/SpotCard.tsx - Spot display → Likes and saves: toggles saved place
src/components/SpotCard.tsx - User → Personal map: explores visits
- Personal map → Interactive map: shows locations
- Interactive map → Map tiles: loads tiles
- User → Spot detail: opens Spot
- User → Place detail: opens Place
- User → User profile: views profile
- User → Friends: manages friends
- Friends → Social data: reads relationships
src/app/friends/page.tsx - Friends → Friend API: submits friend action
- Friend API → Friend operations: applies action
src/app/api/friends/route.ts - User → Notifications: checks updates
- Notifications → Firebase services: loads notifications
- Sign-in and profile → Firebase services: authenticates and stores profile
src/features/auth/AuthContext.tsx