Phase 4: Project scaffolding — faststack init#7
Merged
Conversation
- 8 Jinja2 project templates: pyproject.toml, main.py, config.py, conftest.py, Dockerfile, docker-compose.yml, alembic.ini, alembic env.py - cli/cmd_init.py: `faststack init <name>` scaffolds complete project with directory structure, __init__.py files, .env, .project-config.yaml - Supports --entities flag for YAML-based entity pre-definition - Generated alembic/env.py uses async engine with auto-model discovery 35 new tests (281 total) covering: - Project scaffolding structure and file existence - Generated Python files parse without syntax errors - Template rendering with sample variables - --entities flag includes entity routers in main.py - Error handling for existing directories Part of Phase 4 in #1 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
faststack init <name>— scaffolds a complete project with all directories,__init__.pyfiles,.env,.project-config.yaml--entitiesflag — pre-define entities from YAML, auto-includes routers in main.pyenv.pyusescreate_async_enginewith auto-model discoveryTest coverage
35 new tests (281 total)
How to test
Part of
Phase 4 in #1
🤖 Generated with Claude Code