QuickFlask is a CLI tool designed to help you create modular, functional Flask applications in seconds. I love Flask, but I often found myself writing the same boilerplate code repeatedly. To save time, I created QuickFlask. This tool will save you time and effort, allowing you to focus on building your application rather than setting up the initial structure. It adheres to the DRY (Don’t Repeat Yourself) principle.
To install QuickFlask, run:
pip install quick-flask
pip3 install quick-flask --upgrade
Once installed, you can create a new Flask project by running:
quickflask
--name
(Required): The name of your Flask application.
Example
quickflask --name my_flask_app --template base
After creating your project, navigate into the directory:
cd my_flask_app
Set up a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # On Windows: .\venv\Scripts\activate
Install dependencies:
pip install -r requirements.txt
Run the Flask app:
python app.py
Your application will be accessible at
http://127.0.0.1:5000/
.
Feel free to open issues or submit pull requests to improve QuickFlask. Contributions are always welcome!
This project is licensed under the MIT License. See
LICENSE
for details.
All notable changes to this project.