# shanilka-yapa/qaleesi_5435_semester4 architecture

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

- Interactive diagram: https://gitdiagram.com/shanilka-yapa/qaleesi_5435_semester4
- Repository: https://github.com/shanilka-yapa/qaleesi_5435_semester4

## Overview

Qaleesi is a community-oriented web application for learning, self-expression, creative contributions, and volunteering. Visitors enter through public welcome, login, and registration screens; the React router exposes a home page and protected profile, information, contact, join, and creative-space pages. Contact, join, and creative submissions have visible browser-to-API paths; the Express server routes these requests to MongoDB-backed models. Account routes and their model are also present. Several page components and their API behavior were not sampled, so their internal or backend links are left unspecified.

Main entry points: [`myapp/src/App.jsx`](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/App.jsx) (Route application), [`myapp/src/Components/Footer.jsx`](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/Footer.jsx) (Footer navigation), [`Backend/server.js`](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/Backend/server.js) (HTTP server), [`myapp/src/Components/Contact.jsx`](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/Contact.jsx) (Contact)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_app["Route application<br/>[App.jsx]"]
  node_welcome["Welcome<br/>[Welcome.jsx]"]
  node_login["Login<br/>[login.jsx]"]
  node_signin["Registration<br/>[Signin.jsx]"]
  node_home["Home<br/>[Home.jsx]"]
  node_profile["Profile<br/>[profile.jsx]"]
  node_about["About<br/>[About.jsx]"]
  node_articles["Articles<br/>[Articles.jsx]"]
  node_contact["Contact<br/>[Contact.jsx]"]
  node_join["Join<br/>[Join.jsx]"]
  node_creative["Creative space<br/>[Creative.jsx]"]
  node_footer["Footer navigation<br/>[Footer.jsx]"]
end

subgraph group_api["Backend API"]
  node_server["HTTP server<br/>[server.js]"]
  node_user_routes["Account routes<br/>[userRoutes.js]"]
  node_contact_routes["Contact route<br/>[contactRoutes.js]"]
  node_join_routes["Join routes<br/>[joinRoutes.js]"]
  node_creative_routes["Creative routes<br/>[creativeRoutes.js]"]
end

subgraph group_data["MongoDB models"]
  node_user_model[("User records<br/>[User.js]")]
  node_contact_model[("Contact records<br/>[contactModel.js]")]
  node_join_model[("Join records<br/>[joinModel.js]")]
  node_creative_model[("Creative records<br/>[Creative.js]")]
end

node_visitor(("Visitor"))
node_mongo[("MongoDB")]

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_welcome
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_signin
node_app -->|"routes to"| node_home
node_app -->|"protects route"| node_profile
node_app -->|"protects route"| node_about
node_app -->|"protects route"| node_articles
node_app -->|"protects route"| node_contact
node_app -->|"protects route"| node_join
node_app -->|"protects route"| node_creative
node_contact -->|"posts message"| node_contact_routes
node_join -->|"posts request"| node_join_routes
node_creative -->|"uploads image"| node_creative_routes
node_server -->|"mounts"| node_user_routes
node_server -->|"mounts"| node_contact_routes
node_server -->|"mounts"| node_join_routes
node_server -->|"mounts"| node_creative_routes
node_user_routes -->|"queries"| node_user_model
node_contact_routes -->|"saves"| node_contact_model
node_join_routes -->|"saves and reads"| node_join_model
node_creative_routes -->|"reads and writes"| node_creative_model
node_server -->|"connects"| node_mongo
node_about -->|"renders"| node_footer
node_articles -->|"renders"| node_footer
node_contact -->|"renders"| node_footer
node_creative -->|"renders"| node_footer
node_home -->|"renders"| node_footer
node_join -->|"renders"| node_footer

click node_app "https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/App.jsx"
click node_welcome "https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/Welcome.jsx"
click node_login "https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/login.jsx"
click node_signin "https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/Signin.jsx"
click node_home "https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/Home.jsx"
click node_profile "https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/profile.jsx"
click node_about "https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/About.jsx"
click node_articles "https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/Articles.jsx"
click node_contact "https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/Contact.jsx"
click node_join "https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/Join.jsx"
click node_creative "https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/Creative.jsx"
click node_footer "https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/Footer.jsx"
click node_server "https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/Backend/server.js"
click node_user_routes "https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/Backend/routes/userRoutes.js"
click node_contact_routes "https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/Backend/routes/contactRoutes.js"
click node_join_routes "https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/Backend/routes/joinRoutes.js"
click node_creative_routes "https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/Backend/routes/creativeRoutes.js"
click node_user_model "https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/Backend/models/User.js"
click node_contact_model "https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/Backend/models/contactModel.js"
click node_join_model "https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/Backend/models/joinModel.js"
click node_creative_model "https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/Backend/models/Creative.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_app,node_welcome,node_login,node_signin,node_home,node_profile,node_about,node_articles,node_contact,node_join,node_creative,node_footer toneBlue
class node_server,node_user_routes,node_contact_routes,node_join_routes,node_creative_routes,node_mongo toneAmber
class node_user_model,node_contact_model,node_join_model,node_creative_model toneMint
class node_visitor toneIndigo
```

## Components

### Web application

- [Route application](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/App.jsx): `myapp/src/App.jsx`
- [Welcome](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/Welcome.jsx): `myapp/src/Components/Welcome.jsx`
- [Login](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/login.jsx): `myapp/src/Components/login.jsx`
- [Registration](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/Signin.jsx): `myapp/src/Components/Signin.jsx`
- [Home](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/Home.jsx): `myapp/src/Components/Home.jsx`
- [Profile](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/profile.jsx): `myapp/src/Components/profile.jsx`
- [About](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/About.jsx): `myapp/src/Components/About.jsx`
- [Articles](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/Articles.jsx): `myapp/src/Components/Articles.jsx`
- [Contact](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/Contact.jsx): `myapp/src/Components/Contact.jsx`
- [Join](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/Join.jsx): `myapp/src/Components/Join.jsx`
- [Creative space](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/Creative.jsx): `myapp/src/Components/Creative.jsx`
- [Footer navigation](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/myapp/src/Components/Footer.jsx): `myapp/src/Components/Footer.jsx`

### Backend API

- [HTTP server](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/Backend/server.js): `Backend/server.js`
- [Account routes](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/Backend/routes/userRoutes.js): `Backend/routes/userRoutes.js`
- [Contact route](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/Backend/routes/contactRoutes.js): `Backend/routes/contactRoutes.js`
- [Join routes](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/Backend/routes/joinRoutes.js): `Backend/routes/joinRoutes.js`
- [Creative routes](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/Backend/routes/creativeRoutes.js): `Backend/routes/creativeRoutes.js`

### MongoDB models

- [User records](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/Backend/models/User.js): `Backend/models/User.js`
- [Contact records](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/Backend/models/contactModel.js): `Backend/models/contactModel.js`
- [Join records](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/Backend/models/joinModel.js): `Backend/models/joinModel.js`
- [Creative records](https://github.com/shanilka-yapa/qaleesi_5435_semester4/blob/main/Backend/models/Creative.js): `Backend/models/Creative.js`

### Other components

- **Visitor**
- **MongoDB**

## Connections

- Visitor → Route application: opens (evidence: `myapp/src/App.jsx`)
- Route application → Welcome: routes to (evidence: `myapp/src/App.jsx`)
- Route application → Login: routes to (evidence: `myapp/src/App.jsx`)
- Route application → Registration: routes to (evidence: `myapp/src/App.jsx`)
- Route application → Home: routes to (evidence: `myapp/src/App.jsx`)
- Route application → Profile: protects route (evidence: `myapp/src/App.jsx`)
- Route application → About: protects route (evidence: `myapp/src/App.jsx`)
- Route application → Articles: protects route (evidence: `myapp/src/App.jsx`)
- Route application → Contact: protects route (evidence: `myapp/src/App.jsx`)
- Route application → Join: protects route (evidence: `myapp/src/App.jsx`)
- Route application → Creative space: protects route (evidence: `myapp/src/App.jsx`)
- Contact → Contact route: posts message (evidence: `myapp/src/Components/Contact.jsx`)
- Join → Join routes: posts request (evidence: `myapp/src/Components/Join.jsx`)
- Creative space → Creative routes: uploads image (evidence: `myapp/src/Components/Creative.jsx`)
- HTTP server → Account routes: mounts (evidence: `Backend/server.js`)
- HTTP server → Contact route: mounts (evidence: `Backend/server.js`)
- HTTP server → Join routes: mounts (evidence: `Backend/server.js`)
- HTTP server → Creative routes: mounts (evidence: `Backend/server.js`)
- Account routes → User records: queries (evidence: `Backend/routes/userRoutes.js`)
- Contact route → Contact records: saves (evidence: `Backend/routes/contactRoutes.js`)
- Join routes → Join records: saves and reads (evidence: `Backend/routes/joinRoutes.js`)
- Creative routes → Creative records: reads and writes (evidence: `Backend/routes/creativeRoutes.js`)
- HTTP server → MongoDB: connects (evidence: `Backend/server.js`)
- About → Footer navigation: renders (evidence: `myapp/src/Components/About.jsx`)
- Articles → Footer navigation: renders (evidence: `myapp/src/Components/Articles.jsx`)
- Contact → Footer navigation: renders (evidence: `myapp/src/Components/Contact.jsx`)
- Creative space → Footer navigation: renders (evidence: `myapp/src/Components/Creative.jsx`)
- Home → Footer navigation: renders (evidence: `myapp/src/Components/Home.jsx`)
- Join → Footer navigation: renders (evidence: `myapp/src/Components/Join.jsx`)
