0.0.9 ⢠Published 8 months ago
create-flask v0.0.9
create-flask
š A modern CLI tool to scaffold Flask applications with different templates and configurations.
Features
- šÆ Quick Setup: Create a new Flask project in seconds
- š¦ Multiple Templates: Choose from various pre-configured templates:
- Basic Templates:
basic-minimal
: A lightweight Flask setup for simple applicationsbasic-sqlalchemy
: Flask + SQLAlchemy setup with user model and authentication
- API Templates:
api-minimal
: Basic REST API setupapi-rest
: Complete REST API with authentication and documentation
- Basic Templates:
Installation
npx create-flask@latest
Usage
- Run the create command:
npx create-flask@latest my-flask-app
Select your preferred template when prompted
Follow the setup instructions in your new project directory
Available Templates
Basic Templates
basic-minimal
- Minimal Flask configuration
- Environment variables support
- Basic HTML templates
- Development ready configuration
basic-sqlalchemy
- SQLAlchemy ORM integration
- User model implementation
- Modular application structure
- Database seeders
- Template inheritance with base layout
API Templates
api-minimal
- Basic API structure
- JSON response handling
- Error handling middleware
api-rest
- Complete REST API setup
- Authentication system
- API documentation
- Database integration
Project Structure
Each template follows Flask best practices and includes:
- Environment configuration
- Proper project structuring
- Required dependencies in
requirements.txt
- Ready-to-use development setup
Contributing
Contributions are welcome! Feel free to:
- Add new templates
- Improve existing templates
- Report bugs
- Suggest enhancements
License
MIT License