How nmzz209741/inkpandas works
Main System Components
a) Frontend Layer (React Application)
• React application container
• Modules:
• Components (pages, views, common)
• API Services
• Context Management (Auth)
• Routing
• Query Management
b) Backend Layer (Node.js Application)
• Express.js server container
• Modules:
• Controllers
• Routes
• Middleware
• Models
• Validators
c) Data Layer
• DynamoDB database
• Redis cache
d) Infrastructure Layer
• Nginx reverse proxy
• Docker containers
• ECS deployment
Component Relationships
a) Client-Server Communication
• Frontend → Nginx → Backend API
• RESTful API endpoints for:
• Articles management
• Authentication
• User management
b) Data Flow
• Backend → DynamoDB (primary storage)
• Backend → Redis (caching layer)
• Authentication flow with JWT tokens
Specific Implementation Details
Technical aspects:
a) Frontend Architecture:
React App
• Components (Layout, Pages, Views)
• Context (Auth state management)
• API Services
• Hooks (Custom hooks for articles and auth)
b) Backend Architecture:
Express App
• Routes
• Controllers
• Models
• Middlewares
• Validators
Infrastructure Details
Deployment architecture:
a) Docker Container Structure:
• Frontend container
• Backend container
• DynamoDB local (development)
• Redis container
• Nginx container
b) Production Deployment:
• ECS service
• Load balancing
• Container orchestration