How ssi-dk/sofi_core works
Main Components
a. Frontend Layer:
• React-based web application (in /app directory)
• Key modules:
• Analysis module
• Comparative Analysis module
• GDPR module
• Workspaces module
• Manual Upload module
b. Backend Services:
• Web Service (Flask-based, in /web directory)
• Bifrost Services:
• Bifrost Listener
• Bifrost Queue Broker
• SAP TBR Integration Service (.NET-based)
• Authentication Service (Keycloak)
c. Databases:
• MongoDB (Bifrost DB)
• PostgreSQL (Auth DB)
d. External Integrations:
• LIMS Service
• BioAPI Service
• Microreact Integration
┌─────────────────── Client Layer ───────────────────┐
• React Frontend (Analysis, Workspaces, GDPR, etc.) │
• ┬────────────────────────────┘
• ↓
┌─────────────────── Service Layer ──────────────────┐
• ┌─────────┐ ┌────────┐ ┌─────────┐ ┌───────────┐ │
• Web │ │Bifrost │ │ SAP │ │ Keycloak │ │
• Service │ │Services│ │ TBR │ │ Auth │ │
• ┘ └────────┘ └─────────┘ └───────────┘ │
• ┬────────────────────────────┘
• ↓
┌─────────────────── Data Layer ────────────────────┐
• ┌─────────┐ ┌────────┐ ┌────────────────────┐ │
• MongoDB │ │PostgreSQL│ │ External Services │ │
• ┘ └────────┘ └────────────────────┘ │
• ┘
Key Relationships to Highlight
• Frontend to Backend communication via REST APIs (shown in /sap-client/apis/)
• Authentication flow through Keycloak
• Data flow between Bifrost services and MongoDB
• Integration points with external services (LIMS, BioAPI)
• Queue-based communication between services
Additional Details
Specific annotations for:
• Docker container boundaries (shown by Dockerfile presence)
• API endpoints (from OpenAPI specs in /openapi_specs)
• Data flow directions (based on service interactions)
• Security boundaries (TLS certificates, authentication requirements)
Implementation Notes
• Version information and date
• Document key technologies used:
• Node.js/React (Frontend)
• Python/Flask (Web Service)
• .NET (SAP TBR Integration)
• MongoDB/PostgreSQL (Databases)
• Docker/Docker Compose (Containerization)