Skip to content

Instantly share code, notes, and snippets.

@espretto
Forked from mjhea0/quick_flask.sh
Created June 22, 2014 08:08
Show Gist options
  • Save espretto/4995f2d30742d00a804d to your computer and use it in GitHub Desktop.
Save espretto/4995f2d30742d00a804d 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