# nivetha09a/contact-processing-in-email-automation-sysytem architecture

> Architecture diagram of the GitHub repository nivetha09a/contact-processing-in-email-automation-sysytem, 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/nivetha09a/contact-processing-in-email-automation-sysytem
- Repository: https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem

## Overview

This repository combines an Angular contact-management interface with an Express API and contact-data operations. Users can add or upload contacts, browse and search paginated lists, edit or delete records, and work with unsubscribed contacts; the UI also exposes contact export and unsubscribe method/reason views. The backend routes contact requests to domain handlers, while frontend services use both HTTP and browser-local state. Several handler implementations and UI components were not excerpted, so their internal dependencies are not inferred; deployment infrastructure is excluded.

Main entry points: [`emailautomation/src/app/app.routes.ts`](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/app.routes.ts) (App routes), [`Email/src/app/server.ts`](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/Email/src/app/server.ts) (Express API), [`emailautomation/src/app/service/addcont.service.ts`](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/service/addcont.service.ts) (Contact state service), [`Email/src/services/contactdata/contact-type.ts`](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/Email/src/services/contactdata/contact-type.ts) (Contact data types)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Contact interface"]
  node_angular["Angular app<br/>[main.ts]"]
  node_routes["App routes<br/>[app.routes.ts]"]
  node_add["Add contact"]
  node_upload["Upload contacts"]
  node_listtable["Contact table"]
  node_range["List pagination"]
  node_search["Search bar"]
  node_unsubscribe["Unsubscribe contacts"]
  node_unsubmethod["Unsubscribe method"]
  node_unsubreason["Unsubscribe reason"]
  node_update["Update contact"]
end

subgraph group_services["Frontend services"]
  node_addservice["Contact state service<br/>[addcont.service.ts]"]
  node_contservice["API client<br/>[cont.service.ts]"]
  node_browserstorage[("Browser storage")]
end

subgraph group_api["Contact API"]
  node_express["Express API<br/>[server.ts]"]
end

subgraph group_domain["Contact operations"]
  node_contacttype["Contact data types<br/>[contact-type.ts]"]
  node_create["Create contact<br/>[create-contact.ts]"]
  node_displayall["Display all"]
  node_display["Display contacts<br/>[diplay-contact.ts]"]
  node_delete["Delete contact<br/>[delete-contact.ts]"]
  node_updateop["Update operation<br/>[update-contact.ts]"]
  node_uploadop["Upload operation<br/>[upload-contact.ts]"]
end

node_user(("Contact manager"))

node_user -->|"uses"| node_angular
node_angular -->|"boots"| node_routes
node_routes -->|"routes to"| node_add
node_routes -->|"routes to"| node_upload
node_routes -->|"routes to"| node_listtable
node_routes -->|"routes to"| node_range
node_routes -->|"routes to"| node_search
node_routes -->|"routes to"| node_unsubscribe
node_routes -->|"routes to"| node_unsubmethod
node_routes -->|"routes to"| node_unsubreason
node_add -->|"calls"| node_addservice
node_upload -->|"uses"| node_addservice
node_listtable -->|"reads and edits"| node_addservice
node_range -->|"reads pages"| node_addservice
node_search -->|"sets search"| node_addservice
node_search -->|"fetches filtered"| node_contservice
node_unsubscribe -->|"fetches filtered"| node_contservice
node_addservice -->|"reads and writes"| node_browserstorage
node_addservice -->|"posts contact"| node_express
node_contservice -->|"requests contacts"| node_express
node_express -->|"routes create"| node_create
node_express -->|"routes displayAll"| node_displayall
node_express -->|"routes display"| node_display
node_express -->|"routes delete"| node_delete
node_express -->|"routes update"| node_updateop
node_create -->|"uses types"| node_contacttype
node_displayall -->|"uses types"| node_contacttype
node_display -->|"uses types"| node_contacttype
node_delete -->|"uses types"| node_contacttype
node_updateop -->|"uses types"| node_contacttype
node_uploadop -->|"uses types"| node_contacttype

click node_angular "https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/main.ts"
click node_routes "https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/app.routes.ts"
click node_add "https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/addcontact/addcontact.component.ts"
click node_upload "https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/uploadcontact/uploadcontact.component.ts"
click node_listtable "https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/list/listtable/listtable.component.ts"
click node_range "https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/list/listrange/listrange.component.ts"
click node_search "https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/shared/searchbar/searchbar.component.ts"
click node_unsubscribe "https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/unsubscribed/unsubscribecontact/unsubscribecontact.component.ts"
click node_unsubmethod "https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/unsubscribed/unsubscribemethod/unsubscribemethod.component.ts"
click node_unsubreason "https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/unsubscribed/unsubscribereason/unsubscribereason.component.ts"
click node_update "https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/updatecontact/updatecontact.component.ts"
click node_addservice "https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/service/addcont.service.ts"
click node_contservice "https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/service/cont.service.ts"
click node_express "https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/Email/src/app/server.ts"
click node_contacttype "https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/Email/src/services/contactdata/contact-type.ts"
click node_create "https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/Email/src/services/contactdata/create-contact.ts"
click node_displayall "https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/Email/src/services/contactdata/display-allcontact.ts"
click node_display "https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/Email/src/services/contactdata/diplay-contact.ts"
click node_delete "https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/Email/src/services/contactdata/delete-contact.ts"
click node_updateop "https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/Email/src/services/contactdata/update-contact.ts"
click node_uploadop "https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/Email/src/services/contactdata/upload-contact.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_angular,node_routes,node_add,node_upload,node_listtable,node_range,node_search,node_unsubscribe,node_unsubmethod,node_unsubreason,node_update toneBlue
class node_addservice,node_contservice,node_browserstorage toneAmber
class node_express toneMint
class node_contacttype,node_create,node_displayall,node_display,node_delete,node_updateop,node_uploadop toneRose
class node_user toneIndigo
```

## Components

### Contact interface

- [Angular app](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/main.ts): `emailautomation/src/main.ts`
- [App routes](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/app.routes.ts): `emailautomation/src/app/app.routes.ts`
- [Add contact](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/addcontact/addcontact.component.ts): `emailautomation/src/app/addcontact/addcontact.component.ts`
- [Upload contacts](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/uploadcontact/uploadcontact.component.ts): `emailautomation/src/app/uploadcontact/uploadcontact.component.ts`
- [Contact table](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/list/listtable/listtable.component.ts): `emailautomation/src/app/list/listtable/listtable.component.ts`
- [List pagination](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/list/listrange/listrange.component.ts): `emailautomation/src/app/list/listrange/listrange.component.ts`
- [Search bar](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/shared/searchbar/searchbar.component.ts): `emailautomation/src/app/shared/searchbar/searchbar.component.ts`
- [Unsubscribe contacts](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/unsubscribed/unsubscribecontact/unsubscribecontact.component.ts): `emailautomation/src/app/unsubscribed/unsubscribecontact/unsubscribecontact.component.ts`
- [Unsubscribe method](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/unsubscribed/unsubscribemethod/unsubscribemethod.component.ts): `emailautomation/src/app/unsubscribed/unsubscribemethod/unsubscribemethod.component.ts`
- [Unsubscribe reason](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/unsubscribed/unsubscribereason/unsubscribereason.component.ts): `emailautomation/src/app/unsubscribed/unsubscribereason/unsubscribereason.component.ts`
- [Update contact](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/updatecontact/updatecontact.component.ts): `emailautomation/src/app/updatecontact/updatecontact.component.ts`

### Frontend services

- [Contact state service](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/service/addcont.service.ts): `emailautomation/src/app/service/addcont.service.ts`
- [API client](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/emailautomation/src/app/service/cont.service.ts): `emailautomation/src/app/service/cont.service.ts`
- **Browser storage**

### Contact API

- [Express API](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/Email/src/app/server.ts): `Email/src/app/server.ts`

### Contact operations

- [Contact data types](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/Email/src/services/contactdata/contact-type.ts): `Email/src/services/contactdata/contact-type.ts`
- [Create contact](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/Email/src/services/contactdata/create-contact.ts): `Email/src/services/contactdata/create-contact.ts`
- [Display all](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/Email/src/services/contactdata/display-allcontact.ts): `Email/src/services/contactdata/display-allcontact.ts`
- [Display contacts](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/Email/src/services/contactdata/diplay-contact.ts): `Email/src/services/contactdata/diplay-contact.ts`
- [Delete contact](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/Email/src/services/contactdata/delete-contact.ts): `Email/src/services/contactdata/delete-contact.ts`
- [Update operation](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/Email/src/services/contactdata/update-contact.ts): `Email/src/services/contactdata/update-contact.ts`
- [Upload operation](https://github.com/nivetha09a/contact-processing-in-email-automation-sysytem/blob/main/Email/src/services/contactdata/upload-contact.ts): `Email/src/services/contactdata/upload-contact.ts`

### Other components

- **Contact manager**

## Connections

- Contact manager → Angular app: uses
- Angular app → App routes: boots (evidence: `emailautomation/src/main.ts`)
- App routes → Add contact: routes to (evidence: `emailautomation/src/app/app.routes.ts`)
- App routes → Upload contacts: routes to (evidence: `emailautomation/src/app/app.routes.ts`)
- App routes → Contact table: routes to (evidence: `emailautomation/src/app/app.routes.ts`)
- App routes → List pagination: routes to (evidence: `emailautomation/src/app/app.routes.ts`)
- App routes → Search bar: routes to (evidence: `emailautomation/src/app/app.routes.ts`)
- App routes → Unsubscribe contacts: routes to (evidence: `emailautomation/src/app/app.routes.ts`)
- App routes → Unsubscribe method: routes to (evidence: `emailautomation/src/app/app.routes.ts`)
- App routes → Unsubscribe reason: routes to (evidence: `emailautomation/src/app/app.routes.ts`)
- Add contact → Contact state service: calls (evidence: `emailautomation/src/app/addcontact/addcontact.component.ts`)
- Upload contacts → Contact state service: uses (evidence: `emailautomation/src/app/uploadcontact/uploadcontact.component.ts`)
- Contact table → Contact state service: reads and edits (evidence: `emailautomation/src/app/list/listtable/listtable.component.ts`)
- List pagination → Contact state service: reads pages (evidence: `emailautomation/src/app/list/listrange/listrange.component.ts`)
- Search bar → Contact state service: sets search (evidence: `emailautomation/src/app/shared/searchbar/searchbar.component.ts`)
- Search bar → API client: fetches filtered (evidence: `emailautomation/src/app/shared/searchbar/searchbar.component.ts`)
- Unsubscribe contacts → API client: fetches filtered (evidence: `emailautomation/src/app/unsubscribed/unsubscribecontact/unsubscribecontact.component.ts`)
- Contact state service → Browser storage: reads and writes (evidence: `emailautomation/src/app/service/addcont.service.ts`)
- Contact state service → Express API: posts contact (evidence: `emailautomation/src/app/service/addcont.service.ts`)
- API client → Express API: requests contacts (evidence: `emailautomation/src/app/service/cont.service.ts`)
- Express API → Create contact: routes create (evidence: `Email/src/app/server.ts`)
- Express API → Display all: routes displayAll (evidence: `Email/src/app/server.ts`)
- Express API → Display contacts: routes display (evidence: `Email/src/app/server.ts`)
- Express API → Delete contact: routes delete (evidence: `Email/src/app/server.ts`)
- Express API → Update operation: routes update (evidence: `Email/src/app/server.ts`)
- Create contact → Contact data types: uses types (evidence: `Email/src/services/contactdata/create-contact.ts`)
- Display all → Contact data types: uses types (evidence: `Email/src/services/contactdata/display-allcontact.ts`)
- Display contacts → Contact data types: uses types (evidence: `Email/src/services/contactdata/diplay-contact.ts`)
- Delete contact → Contact data types: uses types (evidence: `Email/src/services/contactdata/delete-contact.ts`)
- Update operation → Contact data types: uses types (evidence: `Email/src/services/contactdata/update-contact.ts`)
- Upload operation → Contact data types: uses types (evidence: `Email/src/services/contactdata/upload-contact.ts`)
