How duct-framework/core works
Main Components
a) Core Framework Components:
• Configuration Reader
• Module System
• Profile System
• Environment Handler
• Resource Manager
• REPL Integration
b) External Dependencies:
• Integrant (micro-framework)
• Java I/O (for resource handling)
User Application Layer
• ▼
Configuration Layer (EDN files)
• ▼
Duct Core Processing Layer
• ▼
Integrant Framework Layer
Key Relationships to Highlight
a) Configuration Flow:
• How EDN configurations are read and processed
• Transformation pipeline: read-config → prep-config → exec-config
b) Module System:
• Module hierarchy with :duct/module as the parent
• How modules can have dependencies using integrant.core/prep-key
• Demonstrate module function application to configurations
c) Profile System:
• Relationship between the five built-in profiles:
• :duct.profile/base
• :duct.profile/dev
• :duct.profile/local
• :duct.profile/test
• :duct.profile/prod
Special Elements
a) Reader Tags (use distinct symbols):
• #duct/env
• #duct/include
• #duct/resource
• #duct/displace
• #duct/replace
• :duct/const
• :duct/module
• :duct/profile
• :duct.core/environment
• :duct.core/project-ns
Implementation Details
src/duct/core/
• core.clj (main functionality)
• env.clj (environment handling)
• merge.clj (configuration merging)
• repl.clj (REPL integration)
• resource.clj (resource management)
Testing Integration
How the test directory structure mirrors the source structure and how test profiles integrate with the system.