Flask-Now is a Flask Application Generator/Build-Tool runs via CLI
Flask-Now is a Flask Application Generator/Build-Tool runs via CLI
Since Flask is commonly used in kickstarting a project, developers shouldn't waste their time with creating folders like static/css, static/js, configuration, controllers, models etc. Aim of Flask-Now is auto generating necessity folders and files according to your architectural pattern and semi-automatically installing desired flask extension. Since Flask is very flexible microframework, it may fit many architectural pattern. Currently following patterns can be auto generated using Flask-Now:
Flask-Now supports two different patterns:
/your_project_folder
venv
run.py
config.py
models.py
requirements.txt
/your_project_folder
venv
run.py
requirements.txt
/project
__init__.py
/blueprints
/index -> an example blueprint
__init__.py
controller.py
forms.py
models.py
config.py
/static
/css
style.css
/js
script.js
/templates
index.html
Let me explain this project with an example. Assume that we want to create an Flask Application called flaskr
sudo pip3 install flask-now
cd my_development_folder
flask-now flaskr simple -e sqlalchemy wtf
cd flaskr && source/venv/bin/activate && python run.py
As you can understand from the example we drop Flask keyword while installing flask extensions to our project.
Some examples which may confuse you:
To uninstall :
sudo pip3 uninstall flask-now
Please feel free to contribute to this project, open issues, fork it, send pull requests.
You can also send email to my mail adress.[email protected]
Happy coding :metal: