# fairoozazim/ema-bd-web architecture

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

- Interactive diagram: https://gitdiagram.com/fairoozazim/ema-bd-web
- Repository: https://github.com/fairoozazim/ema-bd-web

## Overview

EMA-BD is a public website and administration portal for the Erasmus Mundus Association Bangladesh, backed by an Express server. Visitors browse organizational information, members and alumni, blogs, and events; loaders in the route configuration fetch several of those records from the server. Administrators enter a protected dashboard to manage content. The excerpts show routing, authentication state, and a contact-form email integration; backend storage connections are not evidenced, so they are left unlinked.

Main entry points: [`ema-bd-website/src/routes/routes.jsx`](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/routes/routes.jsx) (Route configuration), [`ema-bd-website/src/main.jsx`](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/main.jsx) (App bootstrap), [`ema-bd-website/src/Layout/Main.jsx`](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/Layout/Main.jsx) (Public layout), [`ema-bd-website/src/pages/Contact/Contact.jsx`](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/pages/Contact/Contact.jsx) (Contact form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_main["App bootstrap<br/>[main.jsx]"]
  node_routes["Route configuration<br/>[routes.jsx]"]
  node_shell["Public layout<br/>[Main.jsx]"]
  node_auth["Auth state<br/>[AuthProvider.jsx]"]
end

subgraph group_public["Public content"]
  node_home["Home page<br/>[Home.jsx]"]
  node_about["About and team<br/>[AboutPage.jsx]"]
  node_members["Member profiles<br/>[Team.jsx]"]
  node_alumni["Alumni directory<br/>[Alumni.jsx]"]
  node_blogs["Blog browsing<br/>[Blogs.jsx]"]
  node_blogdetail["Blog details<br/>[BlogDetails.jsx]"]
  node_events["Event browsing<br/>[Events.jsx]"]
  node_eventdetail["Event details<br/>[EventDetails.jsx]"]
  node_contact["Contact form<br/>[Contact.jsx]"]
end

subgraph group_admin["Administration"]
  node_dashboard["Admin dashboard<br/>[Dashboard.jsx]"]
  node_eventadmin["Event management"]
  node_blogadmin["Blog management<br/>[BlogManagement.jsx]"]
  node_memberadmin["Member management"]
  node_alumniadmin["Alumni management"]
end

subgraph group_backend["Server and data"]
  node_server["HTTP API server<br/>[index.js]"]
  node_alumnidata[("Alumni data module<br/>[alumni.js]")]
  node_blogdata[("Blog data module<br/>[blogs.js]")]
  node_memberdata[("Member data module<br/>[member.js]")]
end

node_visitor(("Visitor"))
node_staff(("Administrator"))
node_email{{"EmailJS service"}}

node_visitor -->|"opens site"| node_main
node_staff -->|"opens portal"| node_main
node_main -->|"provides auth"| node_auth
node_main -->|"mounts router"| node_routes
node_routes -->|"routes through"| node_shell
node_shell -->|"renders route"| node_home
node_routes -->|"routes to"| node_about
node_routes -->|"routes to"| node_members
node_routes -->|"routes to"| node_alumni
node_routes -->|"routes to"| node_blogs
node_routes -->|"routes to"| node_blogdetail
node_routes -->|"routes to"| node_events
node_routes -->|"routes to"| node_eventdetail
node_routes -->|"routes to"| node_contact
node_contact -->|"sends message"| node_email
node_routes -->|"fetches records"| node_server
node_routes -->|"protects route"| node_dashboard
node_dashboard -->|"reads auth"| node_auth
node_routes -->|"routes to"| node_eventadmin
node_routes -->|"routes to"| node_blogadmin
node_routes -->|"routes to"| node_memberadmin
node_routes -->|"routes to"| node_alumniadmin

click node_main "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/main.jsx"
click node_routes "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/routes/routes.jsx"
click node_shell "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/Layout/Main.jsx"
click node_auth "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/providers/AuthProvider.jsx"
click node_home "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/pages/Home/Home.jsx"
click node_about "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/pages/AboutPage/AboutPage.jsx"
click node_members "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/pages/Team/Team.jsx"
click node_alumni "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/pages/Alumni/Alumni.jsx"
click node_blogs "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/pages/Blogs/Blogs.jsx"
click node_blogdetail "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/pages/Blogs/BlogDetails.jsx"
click node_events "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/pages/Events/Events.jsx"
click node_eventdetail "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/components/EventsPage/EventDetails.jsx"
click node_contact "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/pages/Contact/Contact.jsx"
click node_dashboard "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/Layout/Dashboard/Dashboard.jsx"
click node_eventadmin "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/components/AdminComponents/EventManagement/EventManagement.jsx"
click node_blogadmin "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/components/AdminComponents/BlogManagement/BlogManagement.jsx"
click node_memberadmin "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/components/AdminComponents/MemberManagement/MemberManagement.jsx"
click node_alumniadmin "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/components/AdminComponents/AlumniManagement/AlumniManagement.jsx"
click node_server "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-server/index.js"
click node_alumnidata "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-server/Database/alumni.js"
click node_blogdata "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-server/Database/blogs.js"
click node_memberdata "https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-server/Database/member.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_main,node_routes,node_shell,node_auth toneBlue
class node_home,node_about,node_members,node_alumni,node_blogs,node_blogdetail,node_events,node_eventdetail,node_contact toneAmber
class node_dashboard,node_eventadmin,node_blogadmin,node_memberadmin,node_alumniadmin toneMint
class node_server,node_alumnidata,node_blogdata,node_memberdata toneRose
class node_visitor,node_staff,node_email toneIndigo
```

## Components

### Application shell

- [App bootstrap](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/main.jsx): `ema-bd-website/src/main.jsx`
- [Route configuration](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/routes/routes.jsx): `ema-bd-website/src/routes/routes.jsx`
- [Public layout](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/Layout/Main.jsx): `ema-bd-website/src/Layout/Main.jsx`
- [Auth state](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/providers/AuthProvider.jsx): `ema-bd-website/src/providers/AuthProvider.jsx`

### Public content

- [Home page](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/pages/Home/Home.jsx): `ema-bd-website/src/pages/Home/Home.jsx`
- [About and team](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/pages/AboutPage/AboutPage.jsx): `ema-bd-website/src/pages/AboutPage/AboutPage.jsx`
- [Member profiles](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/pages/Team/Team.jsx): `ema-bd-website/src/pages/Team/Team.jsx`
- [Alumni directory](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/pages/Alumni/Alumni.jsx): `ema-bd-website/src/pages/Alumni/Alumni.jsx`
- [Blog browsing](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/pages/Blogs/Blogs.jsx): `ema-bd-website/src/pages/Blogs/Blogs.jsx`
- [Blog details](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/pages/Blogs/BlogDetails.jsx): `ema-bd-website/src/pages/Blogs/BlogDetails.jsx`
- [Event browsing](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/pages/Events/Events.jsx): `ema-bd-website/src/pages/Events/Events.jsx`
- [Event details](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/components/EventsPage/EventDetails.jsx): `ema-bd-website/src/components/EventsPage/EventDetails.jsx`
- [Contact form](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/pages/Contact/Contact.jsx): `ema-bd-website/src/pages/Contact/Contact.jsx`

### Administration

- [Admin dashboard](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/Layout/Dashboard/Dashboard.jsx): `ema-bd-website/src/Layout/Dashboard/Dashboard.jsx`
- [Event management](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/components/AdminComponents/EventManagement/EventManagement.jsx): `ema-bd-website/src/components/AdminComponents/EventManagement/EventManagement.jsx`
- [Blog management](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/components/AdminComponents/BlogManagement/BlogManagement.jsx): `ema-bd-website/src/components/AdminComponents/BlogManagement/BlogManagement.jsx`
- [Member management](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/components/AdminComponents/MemberManagement/MemberManagement.jsx): `ema-bd-website/src/components/AdminComponents/MemberManagement/MemberManagement.jsx`
- [Alumni management](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-website/src/components/AdminComponents/AlumniManagement/AlumniManagement.jsx): `ema-bd-website/src/components/AdminComponents/AlumniManagement/AlumniManagement.jsx`

### Server and data

- [HTTP API server](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-server/index.js): `ema-bd-server/index.js`
- [Alumni data module](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-server/Database/alumni.js): `ema-bd-server/Database/alumni.js`
- [Blog data module](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-server/Database/blogs.js): `ema-bd-server/Database/blogs.js`
- [Member data module](https://github.com/fairoozazim/ema-bd-web/blob/main/ema-bd-server/Database/member.js): `ema-bd-server/Database/member.js`

### Other components

- **Visitor**
- **Administrator**
- **EmailJS service**

## Connections

- Visitor → App bootstrap: opens site
- Administrator → App bootstrap: opens portal
- App bootstrap → Auth state: provides auth (evidence: `ema-bd-website/src/main.jsx`)
- App bootstrap → Route configuration: mounts router (evidence: `ema-bd-website/src/main.jsx`)
- Route configuration → Public layout: routes through (evidence: `ema-bd-website/src/routes/routes.jsx`)
- Public layout → Home page: renders route (evidence: `ema-bd-website/src/routes/routes.jsx`)
- Route configuration → About and team: routes to (evidence: `ema-bd-website/src/routes/routes.jsx`)
- Route configuration → Member profiles: routes to (evidence: `ema-bd-website/src/routes/routes.jsx`)
- Route configuration → Alumni directory: routes to (evidence: `ema-bd-website/src/routes/routes.jsx`)
- Route configuration → Blog browsing: routes to (evidence: `ema-bd-website/src/routes/routes.jsx`)
- Route configuration → Blog details: routes to (evidence: `ema-bd-website/src/routes/routes.jsx`)
- Route configuration → Event browsing: routes to (evidence: `ema-bd-website/src/routes/routes.jsx`)
- Route configuration → Event details: routes to (evidence: `ema-bd-website/src/routes/routes.jsx`)
- Route configuration → Contact form: routes to (evidence: `ema-bd-website/src/routes/routes.jsx`)
- Contact form → EmailJS service: sends message (evidence: `ema-bd-website/src/pages/Contact/Contact.jsx`)
- Route configuration → HTTP API server: fetches records (evidence: `ema-bd-website/src/routes/routes.jsx`)
- Route configuration → Admin dashboard: protects route (evidence: `ema-bd-website/src/routes/routes.jsx`)
- Admin dashboard → Auth state: reads auth (evidence: `ema-bd-website/src/Layout/Dashboard/Dashboard.jsx`)
- Route configuration → Event management: routes to (evidence: `ema-bd-website/src/routes/routes.jsx`)
- Route configuration → Blog management: routes to (evidence: `ema-bd-website/src/routes/routes.jsx`)
- Route configuration → Member management: routes to (evidence: `ema-bd-website/src/routes/routes.jsx`)
- Route configuration → Alumni management: routes to (evidence: `ema-bd-website/src/routes/routes.jsx`)
