How zahid0162/aroundme works
AroundMe is a nearby-place discovery app, represented by a Kotlin Multiplatform application and a React example. The principal workflow is to explore places around a selected or current location, refine results, open a place’s details, and save places; search, collections, and profile preferences are related capabilities. The Kotlin sources show the explore state and place-data flow, while the React example uses sample data. Some persistence, navigation, and API wiring is not shown in excerpts, so those relationships are omitted or marked unverified.
Main entry points: App.kt Kotlin app shell · PlacesRepositoryImpl.kt Places repository · ExploreViewModel.kt Explore state · RoomRepositories.kt Local repositories
Components 27
App entry and navigation
- Kotlin app shell
composeApp/src/commonMain/kotlin/com/zahid/aroundme/App.kt - Destinations
composeApp/src/commonMain/kotlin/com/zahid/aroundme/navigation/AroundMeDestination.kt - React entry
src/main.tsx - React discovery app
src/App.tsx
Explore and search
- Explore screen
composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/explore/ExploreScreen.kt - Explore state
composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/explore/ExploreViewModel.kt - Search screen
composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/search/SearchScreen.kt - Search state
composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/search/SearchViewModel.kt - Place details
composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/details/PlaceDetailsScreen.kt - Details state
composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/details/PlaceDetailsViewModel.kt
Place data
- Sample places
src/data/samplePlaces.ts - Place types
src/types/aroundme.ts - Geospatial utilities
composeApp/src/commonMain/kotlin/com/zahid/aroundme/core/geo/GeoUtils.kt - Places repository
composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesRepositoryImpl.kt - Places API client
composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesApiClient.kt - Place mapper
composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesMapper.kt - Category registry
composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/CategoryRegistry.kt
Saved places and preferences
- Saved places
composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/saved/SavedScreen.kt - Saved state
composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/saved/SavedViewModel.kt - Profile settings
composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/profile/ProfileScreen.kt - Profile state
composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/profile/ProfileViewModel.kt - Local database
composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/local/AroundMeDatabase.kt - Local repositories
composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/local/RoomRepositories.kt
Platform services
- Location contract
composeApp/src/commonMain/kotlin/com/zahid/aroundme/domain/repository/LocationRepository.kt - Android location
composeApp/src/androidMain/kotlin/com/zahid/aroundme/core/platform/AndroidLocationRepository.kt - iOS location
composeApp/src/iosMain/kotlin/com/zahid/aroundme/core/platform/IosLocationRepository.kt
Other components
- App user
Connections 28
- App user → Kotlin app shell: uses
composeApp/src/commonMain/kotlin/com/zahid/aroundme/App.kt - Kotlin app shell → Explore screen: routes to
composeApp/src/commonMain/kotlin/com/zahid/aroundme/App.kt - Kotlin app shell → Search screen: routes to
composeApp/src/commonMain/kotlin/com/zahid/aroundme/App.kt - Kotlin app shell → Saved places: routes to
composeApp/src/commonMain/kotlin/com/zahid/aroundme/App.kt - Kotlin app shell → Profile settings: routes to
composeApp/src/commonMain/kotlin/com/zahid/aroundme/App.kt - Kotlin app shell → Place details: routes to
composeApp/src/commonMain/kotlin/com/zahid/aroundme/App.kt - App user → React entry: uses
src/main.tsx - React entry → React discovery app: renders
src/main.tsx - React discovery app → Sample places: reads
src/App.tsx - React discovery app → Place types: uses types
src/App.tsx - Explore screen → Explore state: renders
composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/explore/ExploreScreen.kt - Search screen → Search state: uses
composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/search/SearchScreen.kt - Place details → Details state: uses
composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/details/PlaceDetailsScreen.kt - Saved places → Saved state: uses
composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/saved/SavedScreen.kt - Profile settings → Profile state: uses
composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/profile/ProfileScreen.kt - Explore state → Places repository: loads places
- Explore state → Location contract: reads location
composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/explore/ExploreViewModel.kt - Android location → Location contract: implements
composeApp/src/androidMain/kotlin/com/zahid/aroundme/core/platform/AndroidLocationRepository.kt - iOS location → Location contract: implements
composeApp/src/iosMain/kotlin/com/zahid/aroundme/core/platform/IosLocationRepository.kt - Places repository → Geospatial utilities: computes distance
composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesRepositoryImpl.kt - Places repository → Place mapper: maps results
composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesRepositoryImpl.kt - Places repository → Category registry: gets API types
composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesRepositoryImpl.kt - Places repository → Places API client: requests places
- Place mapper → Category registry: maps categories
composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesMapper.kt - Local repositories → Local database: uses database
- Explore state → Local repositories: reads saved state
- Saved state → Local repositories: uses storage
- Profile state → Local repositories: uses preferences