# kwakgang/do_it_flutter_makeapp architecture

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

- Interactive diagram: https://gitdiagram.com/kwakgang/do_it_flutter_makeapp
- Repository: https://github.com/kwakgang/do_it_flutter_makeapp

## Overview

This repository is a collection of Flutter chapter projects, with start/final variants, rather than one unified application. The provided tree and excerpts expose no Flutter/Dart feature code or README, so the app-level user workflows cannot be established. The visible runtime behavior is concentrated in two Firebase Functions modules: they query Firestore and send FCM notifications; Crafty also schedules old-message cleanup. Native host files appear to be Flutter bootstrap scaffolding. The graph focuses on the backend behavior shown, without inferring how mobile apps invoke it.

Main entry points: [`chapter7/honeybee_final_code/lib/admin/functions/index.js`](https://github.com/kwakgang/do_it_flutter_makeapp/blob/flutter_3_22_1/chapter7/honeybee_final_code/lib/admin/functions/index.js) (Notification functions), [`chapter8/crafty_final_code/lib/admin/functions/index.js`](https://github.com/kwakgang/do_it_flutter_makeapp/blob/flutter_3_22_1/chapter8/crafty_final_code/lib/admin/functions/index.js) (Notification and cleanup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_honeybee["Honeybee backend"]
  node_honeybee_fn["Notification functions<br/>[index.js]"]
  node_honeybee_users[("User records")]
  node_honeybee_posts[("Post records")]
  node_honeybee_fcm["FCM delivery"]
end

subgraph group_crafty["Crafty backend"]
  node_crafty_fn["Notification and cleanup<br/>[index.js]"]
  node_crafty_users[("Crafty user records")]
  node_crafty_messages[("Message records")]
  node_crafty_fcm["FCM delivery"]
end

node_http_trigger(("HTTP caller"))
node_post_event(("Comment creation"))
node_daily_timer(("Daily schedule"))

node_http_trigger -->|"invokes HTTP"| node_honeybee_fn
node_post_event -->|"triggers on create"| node_honeybee_fn
node_honeybee_fn -->|"queries users"| node_honeybee_users
node_honeybee_fn -->|"reads post"| node_honeybee_posts
node_honeybee_fn -->|"sends notifications"| node_honeybee_fcm
node_http_trigger -->|"invokes HTTP"| node_crafty_fn
node_daily_timer -->|"triggers daily"| node_crafty_fn
node_crafty_fn -->|"queries users"| node_crafty_users
node_crafty_fn -->|"deletes old messages"| node_crafty_messages
node_crafty_fn -->|"sends notifications"| node_crafty_fcm

click node_honeybee_fn "https://github.com/kwakgang/do_it_flutter_makeapp/blob/flutter_3_22_1/chapter7/honeybee_final_code/lib/admin/functions/index.js"
click node_crafty_fn "https://github.com/kwakgang/do_it_flutter_makeapp/blob/flutter_3_22_1/chapter8/crafty_final_code/lib/admin/functions/index.js"

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_honeybee_fn,node_honeybee_users,node_honeybee_posts,node_honeybee_fcm toneBlue
class node_crafty_fn,node_crafty_users,node_crafty_messages,node_crafty_fcm toneAmber
class node_http_trigger,node_post_event,node_daily_timer toneIndigo
```

## Components

### Honeybee backend

- [Notification functions](https://github.com/kwakgang/do_it_flutter_makeapp/blob/flutter_3_22_1/chapter7/honeybee_final_code/lib/admin/functions/index.js): `chapter7/honeybee_final_code/lib/admin/functions/index.js`
- **User records**
- **Post records**
- **FCM delivery**

### Crafty backend

- [Notification and cleanup](https://github.com/kwakgang/do_it_flutter_makeapp/blob/flutter_3_22_1/chapter8/crafty_final_code/lib/admin/functions/index.js): `chapter8/crafty_final_code/lib/admin/functions/index.js`
- **Crafty user records**
- **Message records**
- **FCM delivery**

### Other components

- **HTTP caller**
- **Comment creation**
- **Daily schedule**

## Connections

- HTTP caller → Notification functions: invokes HTTP (evidence: `chapter7/honeybee_final_code/lib/admin/functions/index.js`)
- Comment creation → Notification functions: triggers on create (evidence: `chapter7/honeybee_final_code/lib/admin/functions/index.js`)
- Notification functions → User records: queries users (evidence: `chapter7/honeybee_final_code/lib/admin/functions/index.js`)
- Notification functions → Post records: reads post (evidence: `chapter7/honeybee_final_code/lib/admin/functions/index.js`)
- Notification functions → FCM delivery: sends notifications (evidence: `chapter7/honeybee_final_code/lib/admin/functions/index.js`)
- HTTP caller → Notification and cleanup: invokes HTTP (evidence: `chapter8/crafty_final_code/lib/admin/functions/index.js`)
- Daily schedule → Notification and cleanup: triggers daily (evidence: `chapter8/crafty_final_code/lib/admin/functions/index.js`)
- Notification and cleanup → Crafty user records: queries users (evidence: `chapter8/crafty_final_code/lib/admin/functions/index.js`)
- Notification and cleanup → Message records: deletes old messages (evidence: `chapter8/crafty_final_code/lib/admin/functions/index.js`)
- Notification and cleanup → FCM delivery: sends notifications (evidence: `chapter8/crafty_final_code/lib/admin/functions/index.js`)
