How sammedpatil29/oneapp works
Pintu is an Ionic/Angular mobile super-app offering local services including grocery, rides, pharmacy, dining, property, and healthcare. The principal workflow starts at the app shell, routes users through authentication and service screens, and uses feature services to retrieve or update service data. The sampled sources confirm startup, route dispatch for selected features, authentication checks, grocery search, and service discovery. Other substantial product capabilities are represented from the source tree, but their internal calls are not inferred because their implementations were not sampled.
Main entry points: app.routes.ts Route map · app.component.ts App shell · auth.service.ts Authentication · main.ts App bootstrap
Components 26
App foundation
- App bootstrap
src/main.ts - App shell
src/app/app.component.ts - Route map
src/app/app.routes.ts - Auth guard
src/app/guards/auth.guard.ts
Shared services
- Authentication
src/app/services/auth.service.ts - Location and addresses
src/app/services/location.service.ts - Environment config
src/environments/environment.ts - Service discovery
src/app/components/search/search.component.ts - App dialogs
src/app/services/app-dialog.service.ts
Shopping services
- Grocery service
src/app/services/grocery.service.ts - Grocery search
src/app/pages/grocery-search/grocery-search.page.ts - Grocery orders
src/app/pages/grocery-order-details/grocery-order-details.page.ts - Product card
src/app/components/product-card/product-card.component.ts - Pharmacy flows
src/app/pages/pharmacy - Pharmacy data model
src/app/models/pharmacy.model.ts - Pharmacy cart
src/app/services/pharmacy-cart.service.ts
Other services
- Home screen
src/app/pages/home/home.page.ts - Ride booking
src/app/pages/ride/ride.page.ts - Dining flows
src/app/pages/dineout-hotel-details/dineout-hotel-details.page.ts - Doctor services
src/app/pages/consult-doctor/consult-doctor.page.ts - Property services
src/app/pages/property/property.page.ts - Property details
src/app/pages/property-details/property-details.page.ts - Map experience
src/app/pages/map/map.page.ts - About services
src/app/pages/about/about.page.ts - Offline screen
src/app/offline/offline.page.ts
Other components
- App user
Connections 20
- App user → App bootstrap: opens app
src/main.ts - App bootstrap → App shell: bootstraps
src/main.ts - App bootstrap → Route map: provides routes
src/main.ts - App shell → Authentication: checks session
src/app/app.component.ts - App shell → Route map: navigates
src/app/app.component.ts - App shell → Offline screen: shows offline
src/app/app.component.ts - App shell → App dialogs: requests dialogs
src/app/app.component.ts - Route map → Auth guard: guards routes
src/app/app.routes.ts - Route map → Authentication: selects landing route
src/app/app.routes.ts - Auth guard → Authentication: checks token
src/app/guards/auth.guard.ts - Route map → Doctor services: dispatches doctor routes
src/app/app.routes.ts - Route map → Ride booking: dispatches ride routes
src/app/app.routes.ts - Route map → Grocery search: dispatches grocery search
src/app/app.routes.ts - Grocery search → Grocery service: searches products
src/app/pages/grocery-search/grocery-search.page.ts - Grocery search → Authentication: gets token
src/app/pages/grocery-search/grocery-search.page.ts - Service discovery → Location and addresses: loads services
src/app/components/search/search.component.ts - Service discovery → App user: navigates to service
src/app/components/search/search.component.ts - Grocery service → Environment config: uses API config
- Location and addresses → App user: geocodes location
- Pharmacy cart → Pharmacy data model: uses data model
src/app/services/pharmacy-cart.service.ts