Skip to content

Instantly share code, notes, and snippets.

@jihchi
Forked from mjhea0/quick_flask.sh
Created October 4, 2013 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jihchi/6820187 to your computer and use it in GitHub Desktop.
Save jihchi/6820187 to your computer and use it in GitHub Desktop.
mkdir flaskapp && cd flaskapp
touch config.py run.py shell.py app.db requirements.txt
mkdir app
touch app/__init__.py app/constants.py
mkdir app/static app/templates
pip install virtualenv
virtualenv --no-site-packages env
source env/bin/activate
touch .gitignore
cat >.gitignore <<EOF
env
*.pyc
EOF
pip install flask==0.10.1 pycco
pip freeze > requirements.txt
git init
git add .
git commit -m "initial commit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment