"flask create-app app-name" script #5619
dilrajs616
started this conversation in
Ideas
Replies: 2 comments 6 replies
-
how do we use this script? |
Beta Was this translation helpful? Give feedback.
2 replies
-
This might fit better as a Flask extension. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a script called create-app. It can be used by running flask "create-app demo-name" in the terminal. It creates a simple react app with following directory structure:
static
├───css
├───img
└───js
templates
app.py
config.py
.gitignore
README.md
requirements.txt
templates folder has index.html file and css folder has index.css file in it. app.py simply renders index.html. this script also initialises git. It will be a very nice way of setting up flask apps by a single command. I want to contribute this to official flask repo. How can I do that?
Beta Was this translation helpful? Give feedback.
All reactions