# naanukkaa/noghokhashi architecture

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

- Interactive diagram: https://gitdiagram.com/naanukkaa/noghokhashi
- Repository: https://github.com/naanukkaa/noghokhashi

## Overview

This is a Georgian school website combining public information pages with Firebase-backed news and gallery content, user authentication, and admin content management. Visitors browse school, study-process, document, and contact information; news and gallery views read live content, while administrators can add, edit, and delete news and gallery images. The sampled scripts establish Firebase calls and some page behaviors, but the README is empty and most HTML is unsampled, so page-to-script wiring is omitted where it cannot be verified.

Main entry points: [`static/js/firebase.js`](https://github.com/naanukkaa/noghokhashi/blob/main/static/js/firebase.js) (Firebase client setup), [`static/js/global.js`](https://github.com/naanukkaa/noghokhashi/blob/main/static/js/global.js) (Home news feed), [`static/js/admin.js`](https://github.com/naanukkaa/noghokhashi/blob/main/static/js/admin.js) (Create news), [`static/js/edit-news.js`](https://github.com/naanukkaa/noghokhashi/blob/main/static/js/edit-news.js) (Edit news)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public information"]
  node_home["School homepage<br/>[index.html]"]
  node_school["School profile"]
  node_study["Study process"]
  node_documents["School documents"]
  node_library["Library policy<br/>[debuleba.html]"]
  node_contact["Contact page<br/>[contact.html]"]
end

subgraph group_content["News and gallery"]
  node_newsview["News listings<br/>[add-news.js]"]
  node_newsfeed["Home news feed<br/>[global.js]"]
  node_galleryview["Image gallery<br/>[gallery.js]"]
end

subgraph group_admin["Administration"]
  node_authpages["Login and registration<br/>[login.js]"]
  node_register["Registration handler<br/>[register.js]"]
  node_newscreate["Create news<br/>[admin.js]"]
  node_newsedit["Edit news<br/>[edit-news.js]"]
  node_imagecreate["Add gallery image<br/>[add-img.js]"]
  node_newsdelete["Delete news<br/>[global.js]"]
  node_gallerydelete["Delete gallery image<br/>[gallery.js]"]
end

subgraph group_platform["Application services"]
  node_firebase["Firebase client setup<br/>[firebase.js]"]
  node_authservice[("Firebase Authentication")]
  node_database[("Realtime Database")]
  node_storage[("Firebase Storage")]
  node_email["EmailJS service"]
end

node_visitor(("Visitor"))

node_visitor -->|"browses"| node_home
node_newsview -->|"uses setup"| node_firebase
node_newsfeed -->|"uses setup"| node_firebase
node_galleryview -->|"uses setup"| node_firebase
node_newscreate -->|"uses setup"| node_firebase
node_newsedit -->|"uses setup"| node_firebase
node_imagecreate -->|"uses setup"| node_firebase
node_newsdelete -->|"uses setup"| node_firebase
node_gallerydelete -->|"uses setup"| node_firebase
node_authpages -->|"uses setup"| node_firebase
node_register -->|"uses setup"| node_firebase
node_firebase -->|"initializes"| node_authservice
node_firebase -->|"initializes"| node_database
node_firebase -->|"initializes"| node_storage
node_newsview -->|"reads news"| node_database
node_newsfeed -->|"reads news"| node_database
node_galleryview -->|"reads gallery"| node_database
node_newscreate -->|"uploads image"| node_storage
node_newscreate -->|"writes news"| node_database
node_newsedit -->|"updates news"| node_database
node_newsedit -->|"updates image"| node_storage
node_imagecreate -->|"uploads image"| node_storage
node_imagecreate -->|"writes gallery"| node_database
node_newsdelete -->|"removes news"| node_database
node_newsdelete -->|"deletes image"| node_storage
node_gallerydelete -->|"removes gallery"| node_database
node_gallerydelete -->|"deletes image"| node_storage
node_register -->|"creates account"| node_authservice
node_authpages -->|"signs in"| node_authservice
node_newsfeed -->|"sends message"| node_email

click node_home "https://github.com/naanukkaa/noghokhashi/blob/main/index.html"
click node_school "https://github.com/naanukkaa/noghokhashi/tree/main/other-pages/our-school"
click node_study "https://github.com/naanukkaa/noghokhashi/tree/main/other-pages/studying-process"
click node_documents "https://github.com/naanukkaa/noghokhashi/tree/main/other-pages/dokumentebi"
click node_library "https://github.com/naanukkaa/noghokhashi/blob/main/other-pages/library/debuleba.html"
click node_contact "https://github.com/naanukkaa/noghokhashi/blob/main/other-pages/contact.html"
click node_newsview "https://github.com/naanukkaa/noghokhashi/blob/main/static/js/add-news.js"
click node_newsfeed "https://github.com/naanukkaa/noghokhashi/blob/main/static/js/global.js"
click node_galleryview "https://github.com/naanukkaa/noghokhashi/blob/main/static/js/gallery.js"
click node_authpages "https://github.com/naanukkaa/noghokhashi/blob/main/static/js/login.js"
click node_register "https://github.com/naanukkaa/noghokhashi/blob/main/static/js/register.js"
click node_newscreate "https://github.com/naanukkaa/noghokhashi/blob/main/static/js/admin.js"
click node_newsedit "https://github.com/naanukkaa/noghokhashi/blob/main/static/js/edit-news.js"
click node_imagecreate "https://github.com/naanukkaa/noghokhashi/blob/main/static/js/add-img.js"
click node_newsdelete "https://github.com/naanukkaa/noghokhashi/blob/main/static/js/global.js"
click node_gallerydelete "https://github.com/naanukkaa/noghokhashi/blob/main/static/js/gallery.js"
click node_firebase "https://github.com/naanukkaa/noghokhashi/blob/main/static/js/firebase.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_home,node_school,node_study,node_documents,node_library,node_contact toneBlue
class node_newsview,node_newsfeed,node_galleryview toneAmber
class node_authpages,node_register,node_newscreate,node_newsedit,node_imagecreate,node_newsdelete,node_gallerydelete toneMint
class node_firebase,node_authservice,node_database,node_storage,node_email toneRose
class node_visitor toneIndigo
```

## Components

### Public information

- [School homepage](https://github.com/naanukkaa/noghokhashi/blob/main/index.html): `index.html`
- [School profile](https://github.com/naanukkaa/noghokhashi/tree/main/other-pages/our-school): `other-pages/our-school`
- [Study process](https://github.com/naanukkaa/noghokhashi/tree/main/other-pages/studying-process): `other-pages/studying-process`
- [School documents](https://github.com/naanukkaa/noghokhashi/tree/main/other-pages/dokumentebi): `other-pages/dokumentebi`
- [Library policy](https://github.com/naanukkaa/noghokhashi/blob/main/other-pages/library/debuleba.html): `other-pages/library/debuleba.html`
- [Contact page](https://github.com/naanukkaa/noghokhashi/blob/main/other-pages/contact.html): `other-pages/contact.html`

### News and gallery

- [News listings](https://github.com/naanukkaa/noghokhashi/blob/main/static/js/add-news.js): `static/js/add-news.js`
- [Home news feed](https://github.com/naanukkaa/noghokhashi/blob/main/static/js/global.js): `static/js/global.js`
- [Image gallery](https://github.com/naanukkaa/noghokhashi/blob/main/static/js/gallery.js): `static/js/gallery.js`

### Administration

- [Login and registration](https://github.com/naanukkaa/noghokhashi/blob/main/static/js/login.js): `static/js/login.js`
- [Registration handler](https://github.com/naanukkaa/noghokhashi/blob/main/static/js/register.js): `static/js/register.js`
- [Create news](https://github.com/naanukkaa/noghokhashi/blob/main/static/js/admin.js): `static/js/admin.js`
- [Edit news](https://github.com/naanukkaa/noghokhashi/blob/main/static/js/edit-news.js): `static/js/edit-news.js`
- [Add gallery image](https://github.com/naanukkaa/noghokhashi/blob/main/static/js/add-img.js): `static/js/add-img.js`
- [Delete news](https://github.com/naanukkaa/noghokhashi/blob/main/static/js/global.js): `static/js/global.js`
- [Delete gallery image](https://github.com/naanukkaa/noghokhashi/blob/main/static/js/gallery.js): `static/js/gallery.js`

### Application services

- [Firebase client setup](https://github.com/naanukkaa/noghokhashi/blob/main/static/js/firebase.js): `static/js/firebase.js`
- **Firebase Authentication**
- **Realtime Database**
- **Firebase Storage**
- **EmailJS service**

### Other components

- **Visitor**

## Connections

- Visitor → School homepage: browses
- News listings → Firebase client setup: uses setup (evidence: `static/js/add-news.js`)
- Home news feed → Firebase client setup: uses setup (evidence: `static/js/global.js`)
- Image gallery → Firebase client setup: uses setup (evidence: `static/js/gallery.js`)
- Create news → Firebase client setup: uses setup (evidence: `static/js/admin.js`)
- Edit news → Firebase client setup: uses setup (evidence: `static/js/edit-news.js`)
- Add gallery image → Firebase client setup: uses setup (evidence: `static/js/add-img.js`)
- Delete news → Firebase client setup: uses setup (evidence: `static/js/global.js`)
- Delete gallery image → Firebase client setup: uses setup (evidence: `static/js/gallery.js`)
- Login and registration → Firebase client setup: uses setup (evidence: `static/js/login.js`)
- Registration handler → Firebase client setup: uses setup (evidence: `static/js/register.js`)
- Firebase client setup → Firebase Authentication: initializes (evidence: `static/js/firebase.js`)
- Firebase client setup → Realtime Database: initializes (evidence: `static/js/firebase.js`)
- Firebase client setup → Firebase Storage: initializes (evidence: `static/js/firebase.js`)
- News listings → Realtime Database: reads news (evidence: `static/js/add-news.js`)
- Home news feed → Realtime Database: reads news (evidence: `static/js/global.js`)
- Image gallery → Realtime Database: reads gallery (evidence: `static/js/gallery.js`)
- Create news → Firebase Storage: uploads image (evidence: `static/js/admin.js`)
- Create news → Realtime Database: writes news (evidence: `static/js/admin.js`)
- Edit news → Realtime Database: updates news (evidence: `static/js/edit-news.js`)
- Edit news → Firebase Storage: updates image (evidence: `static/js/edit-news.js`)
- Add gallery image → Firebase Storage: uploads image (evidence: `static/js/add-img.js`)
- Add gallery image → Realtime Database: writes gallery (evidence: `static/js/add-img.js`)
- Delete news → Realtime Database: removes news (evidence: `static/js/global.js`)
- Delete news → Firebase Storage: deletes image (evidence: `static/js/global.js`)
- Delete gallery image → Realtime Database: removes gallery (evidence: `static/js/gallery.js`)
- Delete gallery image → Firebase Storage: deletes image (evidence: `static/js/gallery.js`)
- Registration handler → Firebase Authentication: creates account (evidence: `static/js/register.js`)
- Login and registration → Firebase Authentication: signs in (evidence: `static/js/login.js`)
- Home news feed → EmailJS service: sends message (evidence: `static/js/global.js`)
