How teamhavit/havit-server works
Main Components Identification
The system should be represented with these key components:
a) Client Layer:
• iOS App (with Share Extension)
• Android App (with Intent Filter)
b) API Gateway Layer:
• Firebase Functions as the serverless backend
• Express.js REST API routes
c) Core Service Layer:
• Authentication Service (auth routes)
• Content Management Service (content routes)
• Category Management Service (category routes)
• Community Service (community routes)
• Notification Service (FCM Push Server)
d) External Services:
• Kakao Auth
• Apple Auth
• Firebase Cloud Messaging (FCM)
• Slack Integration
e) Database Layer:
• PostgreSQL Database
[Client Layer]
• ↓
[API Gateway Layer]
• ↓
[Core Services Layer]
• ↓
[External Services Layer]
• ↓
[Database Layer]
Key Relationships to Highlight
• Authentication flow between clients, auth service, and external auth providers
• Content management flow showing how content is saved, categorized, and retrieved
• Push notification system integration with FCM
• Database interactions for each service
• Error handling and logging flow to Slack
Implementation Details
• Rectangles: Main services
• Hexagons: External services
• Diamonds: Decision points
Additional Elements
Supporting components:
• Swagger documentation integration
• Test coverage (Mocha)
• Environment configurations
• Security layers (JWT, middleware)