How linkt-dev/linkt-server works
Main System Components
a) Core Application Layer:
• App Module as the root module
• Following feature modules:
• Auth Module
• Member Module
• Content Module
• Health Check Module
b) Infrastructure Layer:
• Database layer (TypeORM configuration indicates database usage)
• JWT Authentication infrastructure
• Configuration management
Module-Level Details
For each module, represent:
a) Auth Module:
• AuthController
• AuthService
• JWT Strategies (Access & Refresh)
• DTOs for login requests/responses
b) Member Module:
• MemberController
• MemberService
• Member Entity
• Related DTOs
c) Content Module:
• ContentController
• ContentService
• Content Entity
• Related DTOs
┌─────────────────────────────────────────────┐
• Client Layer │
• ┘
• ↕
┌─────────────────────────────────────────────┐
• API Gateway Layer │
• (Controllers with endpoints and guards) │
• ┘
• ↕
┌─────────────────────────────────────────────┐
• Application Layer │
• (Services with business logic) │
• ┘
• ↕
┌─────────────────────────────────────────────┐
• Data Access Layer │
• (TypeORM Entities and Repositories) │
• ┘
Additional Details
Elements:
• Health check endpoint for monitoring
• JWT authentication flow
• TypeORM configuration
• Request/Response flow through the application