# sammedpatil29/oneapp architecture

> Architecture diagram of the GitHub repository sammedpatil29/oneapp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sammedpatil29/oneapp
- Repository: https://github.com/sammedpatil29/oneapp

## Overview

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: [`src/app/app.routes.ts`](https://github.com/sammedpatil29/oneapp/blob/master/src/app/app.routes.ts) (Route map), [`src/app/app.component.ts`](https://github.com/sammedpatil29/oneapp/blob/master/src/app/app.component.ts) (App shell), [`src/app/services/auth.service.ts`](https://github.com/sammedpatil29/oneapp/blob/master/src/app/services/auth.service.ts) (Authentication), [`src/main.ts`](https://github.com/sammedpatil29/oneapp/blob/master/src/main.ts) (App bootstrap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App foundation"]
  node_bootstrap["App bootstrap<br/>[main.ts]"]
  node_shell["App shell<br/>[app.component.ts]"]
  node_routes["Route map<br/>[app.routes.ts]"]
  node_authguard["Auth guard<br/>[auth.guard.ts]"]
end

subgraph group_services["Shared services"]
  node_auth["Authentication<br/>[auth.service.ts]"]
  node_location["Location and addresses"]
  node_env["Environment config<br/>[environment.ts]"]
  node_discovery["Service discovery"]
  node_dialogs["App dialogs"]
end

subgraph group_commerce["Shopping services"]
  node_grocery["Grocery service<br/>[grocery.service.ts]"]
  node_grocerysearch["Grocery search"]
  node_groceryorders["Grocery orders"]
  node_productcard["Product card"]
  node_pharmacy["Pharmacy flows"]
  node_pharmacymodel["Pharmacy data model<br/>[pharmacy.model.ts]"]
  node_pharmacycart["Pharmacy cart"]
end

subgraph group_domains["Other services"]
  node_home["Home screen<br/>[home.page.ts]"]
  node_rides["Ride booking<br/>[ride.page.ts]"]
  node_dining["Dining flows"]
  node_doctors["Doctor services"]
  node_properties["Property services<br/>[property.page.ts]"]
  node_propertydetails["Property details"]
  node_map["Map experience<br/>[map.page.ts]"]
  node_about["About services<br/>[about.page.ts]"]
  node_offline["Offline screen<br/>[offline.page.ts]"]
end

node_user(("App user"))

node_user -->|"opens app"| node_bootstrap
node_bootstrap -->|"bootstraps"| node_shell
node_bootstrap -->|"provides routes"| node_routes
node_shell -->|"checks session"| node_auth
node_shell -->|"navigates"| node_routes
node_shell -.->|"shows offline"| node_offline
node_shell -->|"requests dialogs"| node_dialogs
node_routes -->|"guards routes"| node_authguard
node_routes -->|"selects landing route"| node_auth
node_authguard -->|"checks token"| node_auth
node_routes -->|"dispatches doctor routes"| node_doctors
node_routes -->|"dispatches ride routes"| node_rides
node_routes -->|"dispatches grocery search"| node_grocerysearch
node_grocerysearch -->|"searches products"| node_grocery
node_grocerysearch -->|"gets token"| node_auth
node_discovery -->|"loads services"| node_location
node_discovery -->|"navigates to service"| node_user
node_grocery -.->|"uses API config"| node_env
node_location -.->|"geocodes location"| node_user
node_pharmacycart -->|"uses data model"| node_pharmacymodel

click node_bootstrap "https://github.com/sammedpatil29/oneapp/blob/master/src/main.ts"
click node_shell "https://github.com/sammedpatil29/oneapp/blob/master/src/app/app.component.ts"
click node_routes "https://github.com/sammedpatil29/oneapp/blob/master/src/app/app.routes.ts"
click node_authguard "https://github.com/sammedpatil29/oneapp/blob/master/src/app/guards/auth.guard.ts"
click node_auth "https://github.com/sammedpatil29/oneapp/blob/master/src/app/services/auth.service.ts"
click node_location "https://github.com/sammedpatil29/oneapp/blob/master/src/app/services/location.service.ts"
click node_env "https://github.com/sammedpatil29/oneapp/blob/master/src/environments/environment.ts"
click node_discovery "https://github.com/sammedpatil29/oneapp/blob/master/src/app/components/search/search.component.ts"
click node_grocery "https://github.com/sammedpatil29/oneapp/blob/master/src/app/services/grocery.service.ts"
click node_grocerysearch "https://github.com/sammedpatil29/oneapp/blob/master/src/app/pages/grocery-search/grocery-search.page.ts"
click node_groceryorders "https://github.com/sammedpatil29/oneapp/blob/master/src/app/pages/grocery-order-details/grocery-order-details.page.ts"
click node_productcard "https://github.com/sammedpatil29/oneapp/blob/master/src/app/components/product-card/product-card.component.ts"
click node_pharmacy "https://github.com/sammedpatil29/oneapp/tree/master/src/app/pages/pharmacy"
click node_pharmacymodel "https://github.com/sammedpatil29/oneapp/blob/master/src/app/models/pharmacy.model.ts"
click node_home "https://github.com/sammedpatil29/oneapp/blob/master/src/app/pages/home/home.page.ts"
click node_rides "https://github.com/sammedpatil29/oneapp/blob/master/src/app/pages/ride/ride.page.ts"
click node_dining "https://github.com/sammedpatil29/oneapp/blob/master/src/app/pages/dineout-hotel-details/dineout-hotel-details.page.ts"
click node_doctors "https://github.com/sammedpatil29/oneapp/blob/master/src/app/pages/consult-doctor/consult-doctor.page.ts"
click node_properties "https://github.com/sammedpatil29/oneapp/blob/master/src/app/pages/property/property.page.ts"
click node_propertydetails "https://github.com/sammedpatil29/oneapp/blob/master/src/app/pages/property-details/property-details.page.ts"
click node_map "https://github.com/sammedpatil29/oneapp/blob/master/src/app/pages/map/map.page.ts"
click node_about "https://github.com/sammedpatil29/oneapp/blob/master/src/app/pages/about/about.page.ts"
click node_offline "https://github.com/sammedpatil29/oneapp/blob/master/src/app/offline/offline.page.ts"
click node_dialogs "https://github.com/sammedpatil29/oneapp/blob/master/src/app/services/app-dialog.service.ts"
click node_pharmacycart "https://github.com/sammedpatil29/oneapp/blob/master/src/app/services/pharmacy-cart.service.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_bootstrap,node_shell,node_routes,node_authguard,node_user toneBlue
class node_auth,node_location,node_env,node_discovery,node_dialogs toneAmber
class node_grocery,node_grocerysearch,node_groceryorders,node_productcard,node_pharmacy,node_pharmacymodel,node_pharmacycart toneMint
class node_home,node_rides,node_dining,node_doctors,node_properties,node_propertydetails,node_map,node_about,node_offline toneRose
```

## Components

### App foundation

- [App bootstrap](https://github.com/sammedpatil29/oneapp/blob/master/src/main.ts): `src/main.ts`
- [App shell](https://github.com/sammedpatil29/oneapp/blob/master/src/app/app.component.ts): `src/app/app.component.ts`
- [Route map](https://github.com/sammedpatil29/oneapp/blob/master/src/app/app.routes.ts): `src/app/app.routes.ts`
- [Auth guard](https://github.com/sammedpatil29/oneapp/blob/master/src/app/guards/auth.guard.ts): `src/app/guards/auth.guard.ts`

### Shared services

- [Authentication](https://github.com/sammedpatil29/oneapp/blob/master/src/app/services/auth.service.ts): `src/app/services/auth.service.ts`
- [Location and addresses](https://github.com/sammedpatil29/oneapp/blob/master/src/app/services/location.service.ts): `src/app/services/location.service.ts`
- [Environment config](https://github.com/sammedpatil29/oneapp/blob/master/src/environments/environment.ts): `src/environments/environment.ts`
- [Service discovery](https://github.com/sammedpatil29/oneapp/blob/master/src/app/components/search/search.component.ts): `src/app/components/search/search.component.ts`
- [App dialogs](https://github.com/sammedpatil29/oneapp/blob/master/src/app/services/app-dialog.service.ts): `src/app/services/app-dialog.service.ts`

### Shopping services

- [Grocery service](https://github.com/sammedpatil29/oneapp/blob/master/src/app/services/grocery.service.ts): `src/app/services/grocery.service.ts`
- [Grocery search](https://github.com/sammedpatil29/oneapp/blob/master/src/app/pages/grocery-search/grocery-search.page.ts): `src/app/pages/grocery-search/grocery-search.page.ts`
- [Grocery orders](https://github.com/sammedpatil29/oneapp/blob/master/src/app/pages/grocery-order-details/grocery-order-details.page.ts): `src/app/pages/grocery-order-details/grocery-order-details.page.ts`
- [Product card](https://github.com/sammedpatil29/oneapp/blob/master/src/app/components/product-card/product-card.component.ts): `src/app/components/product-card/product-card.component.ts`
- [Pharmacy flows](https://github.com/sammedpatil29/oneapp/tree/master/src/app/pages/pharmacy): `src/app/pages/pharmacy`
- [Pharmacy data model](https://github.com/sammedpatil29/oneapp/blob/master/src/app/models/pharmacy.model.ts): `src/app/models/pharmacy.model.ts`
- [Pharmacy cart](https://github.com/sammedpatil29/oneapp/blob/master/src/app/services/pharmacy-cart.service.ts): `src/app/services/pharmacy-cart.service.ts`

### Other services

- [Home screen](https://github.com/sammedpatil29/oneapp/blob/master/src/app/pages/home/home.page.ts): `src/app/pages/home/home.page.ts`
- [Ride booking](https://github.com/sammedpatil29/oneapp/blob/master/src/app/pages/ride/ride.page.ts): `src/app/pages/ride/ride.page.ts`
- [Dining flows](https://github.com/sammedpatil29/oneapp/blob/master/src/app/pages/dineout-hotel-details/dineout-hotel-details.page.ts): `src/app/pages/dineout-hotel-details/dineout-hotel-details.page.ts`
- [Doctor services](https://github.com/sammedpatil29/oneapp/blob/master/src/app/pages/consult-doctor/consult-doctor.page.ts): `src/app/pages/consult-doctor/consult-doctor.page.ts`
- [Property services](https://github.com/sammedpatil29/oneapp/blob/master/src/app/pages/property/property.page.ts): `src/app/pages/property/property.page.ts`
- [Property details](https://github.com/sammedpatil29/oneapp/blob/master/src/app/pages/property-details/property-details.page.ts): `src/app/pages/property-details/property-details.page.ts`
- [Map experience](https://github.com/sammedpatil29/oneapp/blob/master/src/app/pages/map/map.page.ts): `src/app/pages/map/map.page.ts`
- [About services](https://github.com/sammedpatil29/oneapp/blob/master/src/app/pages/about/about.page.ts): `src/app/pages/about/about.page.ts`
- [Offline screen](https://github.com/sammedpatil29/oneapp/blob/master/src/app/offline/offline.page.ts): `src/app/offline/offline.page.ts`

### Other components

- **App user**

## Connections

- App user → App bootstrap: opens app (evidence: `src/main.ts`)
- App bootstrap → App shell: bootstraps (evidence: `src/main.ts`)
- App bootstrap → Route map: provides routes (evidence: `src/main.ts`)
- App shell → Authentication: checks session (evidence: `src/app/app.component.ts`)
- App shell → Route map: navigates (evidence: `src/app/app.component.ts`)
- App shell → Offline screen: shows offline (evidence: `src/app/app.component.ts`)
- App shell → App dialogs: requests dialogs (evidence: `src/app/app.component.ts`)
- Route map → Auth guard: guards routes (evidence: `src/app/app.routes.ts`)
- Route map → Authentication: selects landing route (evidence: `src/app/app.routes.ts`)
- Auth guard → Authentication: checks token (evidence: `src/app/guards/auth.guard.ts`)
- Route map → Doctor services: dispatches doctor routes (evidence: `src/app/app.routes.ts`)
- Route map → Ride booking: dispatches ride routes (evidence: `src/app/app.routes.ts`)
- Route map → Grocery search: dispatches grocery search (evidence: `src/app/app.routes.ts`)
- Grocery search → Grocery service: searches products (evidence: `src/app/pages/grocery-search/grocery-search.page.ts`)
- Grocery search → Authentication: gets token (evidence: `src/app/pages/grocery-search/grocery-search.page.ts`)
- Service discovery → Location and addresses: loads services (evidence: `src/app/components/search/search.component.ts`)
- Service discovery → App user: navigates to service (evidence: `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 (evidence: `src/app/services/pharmacy-cart.service.ts`)
