How tahirmahmudzade/schmalify works
Main Components
A. Client-Side Layer:
• Vue 3/Nuxt 3 Frontend Components
• Pages (Home, Categories, Items, Profile, Search)
• Reusable Components (Chat, Modals, Product)
• State Management (stores directory)
• Internationalization (i18n)
B. Server-Side Layer:
• Unjs Nitro Server Engine
• API Routes Structure
• Authentication System
• Database Layer (Drizzle ORM)
C. External Services (NuxtHub Infrastructure):
• Cloudflare D1 (SQLite Database)
• Cloudflare R2 (Blob Storage)
• Cloudflare KV (Key-Value Storage)
• Cloudflare Pages (Deployment)
Component Relationships
[Client Layer]
• ↕ HTTP/WebSocket
[Server Layer (Nitro)]
• ↕ ORM/API
[Infrastructure Layer]
Detailed Component Breakdown
a. Client Layer (Top):
• Authentication (Login/Register)
• Item Management
• Chat System
• Search & Filtering
• Internationalization
• To corresponding stores and composables
b. Server Layer (Middle):
• API Routes (/server/api):
• Auth endpoints
• Items endpoints
• Messages endpoints
• Users endpoints
• Blob handling
• Services (/server/service):
• User service
• Item service
• Conversation service
• Category service
c. Infrastructure Layer (Bottom):
• Database (Cloudflare D1)
• File Storage (Cloudflare R2)
• KV Storage
• Deployment Platform
Additional Elements
• Scalability points
• Critical security boundaries