How ms1034/url_shortner works
Main Components
A. Frontend Layer (Next.js Application):
• Client-side Components
• Dashboard Module
• Authentication Pages
• URL Management
• Analytics Module
• API Keys Management
• Brand Logo Management
• URL Tags Management
B. Backend Layer (NestJS Application):
• Core Modules
• Auth Module
• URL Module
• Analytics Module
• Users Module
• API Keys Module
• Logo Module
• Tags Module
• Caching Module
C. External Services:
• Cloudinary (for image storage)
• IP Geolocation Service
D. Database Layer:
• PostgreSQL Database (via Prisma ORM)
Architecture Patterns to Highlight
• Clean Architecture (visible in the backend structure)
• Module-based Architecture (NestJS modules)
• MVC Pattern (Controllers, Services, DTOs)
• Repository Pattern (for data access)
• Middleware Architecture (for request processing)
[Client Browser]
• ↕
[Frontend Layer (Next.js)] → [Redux Store]
• ↕
[API Gateway/Load Balancer]
• ↕
[Backend Layer (NestJS)]
• ↙ ↓ ↘
[Cloudinary] [PostgreSQL] [IP Geolocation]
Additional Details
Technical aspects:
• Environment Configuration
• Database Migration System
• Caching Layer
• Error Handling
• Logging System