Welcome to my opinionated, lightweight Flask project template.
-
After installing Vagrant, create and boot the VM inside this directory:
vagrant up
-
SSH to the VM:
vagrant ssh
-
Run your app:
fab run
You will have a running app listening on http://localhost:5000/ at this point.
After initial boot, you should:
-
Freeze the newly-installed pip packages at their versions:
pip freeze > requirements.txt
-
Set the
SECRET_KEY
for each environment inapp/config/
.
*nix-flavoured OS.
The following software will be installed and configured automatically:
- Alembic
- cssmin
- Fabric (deployment scripts included)
- Flask
- Flask-AssetsLite
- New Relic
- nginx
- PostgreSQL
- Puppet (manifests included)
- uWSGI
- Vagrant VM running Ubuntu 14.04 LTS
Licenced under the MIT licence (see LICENCE), so go ahead and fork this!
Originally based on https://gist.github.com/urschrei/2666927.