How sesac-mini2/jachuiplan_apitodb works
Main Components to Include:
Data Sources Layer
• Legal district code API (법정동코드)
• Single/Multi-family housing API (단독/다가구)
• Multi-household housing API (연립 다세대)
• Officetel API (오피스텔)
Application Layer
• Core Application Component:
• Main application (index.js) as the central orchestrator
• Configuration management component (config/)
• Utility services (util/)
• Data Processing Components:
• Region code processor (regioncd/)
• Transaction data converter (transactionData/)
Storage Layer
• Oracle Database with tables:
• REGIONCD table
• Transaction tables for each property type
Top Level (External Services)
• API sources at the top
Middle Level (Application)
• Clear subdivisions for:
• Configuration management
• Data processing modules
• Utility services
• Rectangles for core modules
• Hexagons for utility services
Bottom Level (Storage)
• Oracle database at the bottom
• Table structure
Key Flows to Highlight:
Configuration Flow
• How secrets.json and config.js feed into the system
Data Flow
• API calls from util/request.util.js to external services
• Data processing through converter.js and regioncd.js
• Database operations through oracle.util.js
Special Considerations:
Error Handling
• Error handling paths
• Retry mechanisms for API calls
Data Processing
• Transformation of data between API responses and database storage
• Filtering process for district location data
• Blue: External APIs
• Green: Core application components
• Yellow: Utility services
• Gray: Configuration
• Red: Database components
Error handling paths
Level of Detail:
• Keep main components visible at a glance
• Use subdiagrams for detailed processes like data conversion
• Important configuration parameters without overwhelming detail
The database interaction patterns
Remember to add notes about:
• API rate limiting considerations
• Database table management (DROP/CREATE behavior)
• Configuration requirements (secrets.json)
This will provide a comprehensive view of the system while maintaining clarity about its primary purpose of fetching and storing real estate transaction data.