graph TD
%% Node Styles %%
classDef client fill:#0d1117,stroke:#00f3ff,stroke-width:2px,color:#00f3ff;
classDef server fill:#0d1117,stroke:#ff007f,stroke-width:2px,color:#ff007f;
classDef db fill:#0d1117,stroke:#7000ff,stroke-width:2px,color:#7000ff;
subgraph STAGE_CLIENT ["💻 STAGE 1: Client HUD Layer (Vanilla JS + Glassmorphism)"]
UI["📱 Glassmorphic UI Dashboard"]:::client
SEARCH["🔍 Debounced Live Search Engine"]:::client
FEED["📰 Optimistic Dynamic Timeline"]:::client
end
subgraph STAGE_BACKEND ["⚡ STAGE 2: Express Processing Mesh"]
API["📡 REST Routing Engine"]:::server
AUTH["🔒 JWT Auth Middleware"]:::server
UPLOADER["📦 Multer Media Handler"]:::server
end
subgraph STAGE_DATABASE ["💾 STAGE 3: Relational Storage Vault"]
DB[(🗄️ SQLite3 Database)]:::db
end
UI -->|Async HTTP / JSON| API
SEARCH -->|Debounced GET /api/search| API
FEED -->|POST /api/posts| API
API -->|Validate Token| AUTH
API -->|Process File| UPLOADER
API -->|SQL Queries| DB
# 1. Clone the Cybernet Repository
$ git clone https://github.com/YOUR_USERNAME/nexora-social-platform.git
# 2. Navigate into the Project Core
$ cd nexora-social-platform
# 3. Inject Module Dependencies
$ npm install
# 4. Synthesize Sample Database Seeds
$ npm run seed
# 5. Ignite the Server Matrix
$ npm run dev⚡ NEXORA_CORE_ROOT
├── 📁 data/ ► [STAGE 1] SQLite Database Vault (nexora_social.db)
├── 📁 public/ ► [STAGE 2] Client Front-End Engine
│ ├── 📁 css/ ► Glassmorphic Design System & Micro-Animations
│ ├── 📁 js/ ► Single-Page Dynamic App Controller
│ ├── 📁 uploads/ ► Media Storage Stream Buffer
│ └── 📄 index.html ► Futuristic HUD Layout Entrypoint
├── 📁 src/ ► [STAGE 3] Server Logic Mesh
│ ├── 📁 db/ ► Database Schemas & Seeder Logic
│ ├── 📁 middleware/ ► JWT Security & Authorization Barrier
│ └── 📁 routes/ ► REST Endpoints (Auth, Posts, Users, Uploads)
├── 📄 server.js ► Master Node Server
├── 📄 .gitignore ► Exclusion Filter
├── 📄 LICENSE ► MIT License Document
└── 📄 README.md ► Cyberpunk Systems Manual| HTTP Method | API Endpoint | Operational Target | Security Barrier | Status Indicator |
|---|---|---|---|---|
POST |
/api/auth/register |
User Account Provisioning | 🔓 PUBLIC | <span style="color:#00FF66">● ACTIVE</span> |
POST |
/api/auth/login |
Issue JWT Token & Auth | 🔓 PUBLIC | <span style="color:#00FF66">● ACTIVE</span> |
GET |
/api/auth/me |
Resolve Authenticated Profile | 🔒 JWT | <span style="color:#00F3FF">⚡ PROTECTED</span> |
GET |
/api/posts |
Timeline Stream Pipeline | 🔒 JWT | <span style="color:#00F3FF">⚡ PROTECTED</span> |
POST |
/api/posts |
Dispatch New Post | 🔒 JWT | <span style="color:#00F3FF">⚡ PROTECTED</span> |
POST |
/api/posts/:id/like |
Reaction Matrix Toggle | 🔒 JWT | <span style="color:#FF007F">💖 ANIMATED</span> |
POST |
/api/posts/:id/comments |
Post Comment Thread | 🔒 JWT | <span style="color:#00F3FF">⚡ PROTECTED</span> |
GET |
/api/users/:username |
User Profile & Posts Graph | 🔒 JWT | <span style="color:#00F3FF">⚡ PROTECTED</span> |
POST |
/api/users/:id/follow |
Cyber Graph Connection Toggle | 🔒 JWT | <span style="color:#7000FF">🔗 LIVE GRAPH</span> |
GET |
/api/search |
Live Debounced User Query | 🔒 JWT | <span style="color:#00FF66">🎯 LIVE MATCH</span> |
POST |
/api/upload |
Media Attachment Buffer Stream | 🔒 JWT | <span style="color:#FFB700">🖼️ STREAMING</span> |






