Flask Project Generator - Quick Start Guide
Flite is a powerful Flask project generator that helps developers quickly bootstrap Flask applications with modern project structures and best practices.
Not available yet on PyPI
git clone https://github.com/Artbyo3/flite.git
cd flite
pip install -e .
Get up and running with Flite in just a few commands:
flite create my-awesome-app
cd my-awesome-app
flite run
Your Flask application is now running at http://localhost:5000
with a modern project structure, beautiful UI, and all the essentials you need to start building.
Generate a complete Flask project structure in seconds
Beautiful, responsive design with 3D effects and animations
Follows Flask best practices and project organization
Customize templates, styles, and project structure
Automatic dependency management with requirements.txt
Includes configuration for development and production
Flite provides several commands to help you manage your Flask projects:
flite create <project-name>
Creates a new Flask project with the specified name
flite create my-blog
flite create ecommerce-site
flite create api-backend
flite init
Initialize Flite in an existing directory
mkdir my-project
cd my-project
flite init
flite add <component>
Add components to existing projects
flite add auth # Add authentication
flite add api # Add API endpoints
flite add admin # Add admin panel
flite add database # Add database models
flite serve
Start the development server with auto-reload
flite serve --port 8080
flite serve --debug
flite serve --host 0.0.0.0
Here are some common use cases and examples:
# Create the project
flite create my-blog
# Add blog features
cd my-blog
flite add auth
flite add database
# Start developing
flask run
# Create API project
flite create my-api --template api
# Add database and authentication
flite add database
flite add auth
# Add API documentation
flite add docs
# Run the API
flask run --port 5000
# Create e-commerce project
flite create shop --template ecommerce
# Add all necessary components
flite add auth
flite add database
flite add payment
flite add admin
# Start the application
flask run
Flite projects come with sensible defaults, but you can customize them:
my-project/
├── app/
│ ├── __init__.py
│ ├── routes.py
│ ├── models.py
│ ├── static/
│ │ ├── css/
│ │ ├── js/
│ │ └── images/
│ └── templates/
│ ├── base.html
│ └── index.html
├── config.py
├── requirements.txt
└── run.py
# .env file
FLASK_APP=run.py
FLASK_ENV=development
SECRET_KEY=your-secret-key-here
DATABASE_URL=sqlite:///app.db
Solution: Make sure you have Flask installed in your virtual environment:
pip install flask
# or
pip install -r requirements.txt
Solution: Use a different port or kill the process using the port:
flask run --port 8080
# or
lsof -ti:5000 | xargs kill -9
Solution: Make sure your templates are in the correct directory and Flask can find them:
# Check your app structure
ls -la app/templates/
# Make sure Flask app is initialized correctly
python -c "from app import app; print(app.template_folder)"