How woowacourse-teams/2020-seller-lee-company works
Main System Components
a) Frontend Layer:
• React Native Mobile Application (found in /front directory)
• Key modules to highlight:
• Authentication components (/src/auth)
• Chat features (/src/components/chat)
• Article/Product management (/src/components/Article)
• Organization management (/src/components/organization)
b) Backend Layer:
Split into two main services:
• API Service (/back/api):
• Core business logic
• Authentication/Authorization
• Article management
• Organization management
• Member management
• Chat Service (/back/chat):
• Real-time messaging
• WebSocket connections
• Message persistence
c) Database Layer:
• MariaDB (indicated by Dockerfile-mariadb)
• MongoDB (indicated by MongoConfig.java in chat service)
d) Infrastructure:
• Docker containers (multiple Dockerfile presence)
• Jenkins CI/CD pipeline (Jenkinsfile)
Relationships and Data Flow
• Client-Server communication via REST APIs
• WebSocket connections for real-time chat
• Database interactions
• Authentication flow with OAuth2 (indicated by OAuth2 related files)
Key Architectural Patterns to Highlight
a) Microservices Architecture:
• Separate API and Chat services
• Independent deployments
• Different database technologies for different services
b) Domain-Driven Design:
• Clear domain separation (article, chat, member, organization)
• Rich domain models with clear boundaries
c) Layered Architecture in Each Service:
• Presentation layer (controllers)
• Application layer (services)
• Domain layer (entities)
• Infrastructure layer (repositories)
Technical Components
a) Security Layer:
• OAuth2 authentication
• JWT token management
• Security filters
b) External Services:
• Kakao Login integration
• Push notification service
c) Storage:
• File storage for images
• Database systems
Specific Implementation Details
Specialized components:
• Event-driven architecture (indicated by event listeners)
• Caching mechanisms
• Message queues for asynchronous operations