Refactor Monolith to Modular Architecture
Break down a monolithic file into clean, maintainable modules.
modernization
refactor
architecture
modular
clean-code
0
Prompt
Refactor this monolithic code into a clean modular architecture. Requirements: - Identify logical boundaries and separate concerns - Create focused, single-responsibility modules - Define clear interfaces between modules - Preserve all existing functionality - Add proper exports and imports - Use TypeScript for type safety - Follow modern project structure patterns Monolithic code: [Paste your large file or code block here] Provide: 1. Suggested file structure 2. Module separation strategy 3. Code for each new module 4. Updated imports/exports 5. Any necessary refactoring notes