-
-
Notifications
You must be signed in to change notification settings - Fork 16
feat: Add modular architecture, MSSR pattern, and full project generation #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…es, shared, tests)
…dules compatibility
…2000+ lines of bloat)
… fix doctor command
|
This pull request has a merge conflict that needs to be resolved. |
…te dirs (shared/, tests/, plugins/)
|
This pull request has a merge conflict that needs to be resolved. |
tiangolo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! We'll gradually add new features here, one by one, after careful consideration for each one.
It will also be done in independent small PRs.
For now, I'll pass on this. ☕
feat: Add modular architecture, MSSR pattern, and full project generation
Summary
Transforms
fastapi-newfrom a basic project initializer into a complete modular project generator with professional architecture patterns and CLI tools.Before → After
Before:
main.pywith basic FastAPI setupAfter:
New Features
🏗️ Modular Architecture
INSTALLED_APPScore/,apps/, anddb/directories📦 MSSR Pattern
New
createappcommand generates structured modules:🔧 New CLI Commands
fastapi-new createapp <name>- Generate MSSR modulesfastapi-new add-db <engine>- Configure database (postgres/mysql/sqlite/mongodb)fastapi-new list- View installed modulesfastapi-new doctor- Diagnose project health📁 Complete Project Structure
Usage Example
Technical Details
.tplfiles for clean code generationChanges
Added Files
createapp.py,adddb.py,listapps.py,doctor.pytemplates/project/(13 files),templates/app/(7 files)Enhanced
new.py- Now generates complete structure instead of justmain.pyTesting
✅ 28 tests, all passing
✅ Multi-OS (Linux, macOS, Windows)
✅ Python 3.10-3.14
Breaking Changes
None - existing usage continues to work with enhanced features.
Type: Feature Enhancement
Impact: High - Major new functionality
Docs: Complete