Skip to content

A docker compose flask template with NGINX, Postgres DB, Bootstrap 3, asset bundling+minification with webpack, starter templates, and registration/authentication. For use with cookiecutter.

Notifications You must be signed in to change notification settings

freddyesteban/cookiecutter-flask

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cookiecutter-flask

A Docker Compose Flask template for cookiecutter. The Templates Generates a docker-compose application with 3 containers: Nginx, postgres and flask application.

Use it now

$ pip install cookiecutter
$ cookiecutter https://github.com/freddystban/cookiecutter-flask.git

You will be asked about your basic info (name, project name, app name, etc.). This info will be used in your new project.

Features

  • Bootstrap 3 and Font Awesome 4 with starter templates
  • Flask-SQLAlchemy with basic User model
  • Easy database migrations with Flask-Migrate
  • Flask-WTForms with login and registration forms
  • Flask-Login for authentication
  • Flask-Bcrypt for password hashing
  • Procfile for deploying to a PaaS (e.g. Heroku)
  • pytest and Factory-Boy for testing (example tests included)
  • Flask's Click CLI configured with simple commands
  • CSS and JS minification using webpack
  • npm support for frontend package management
  • Caching using Flask-Cache
  • Useful debug toolbar
  • Utilizes best practices: Blueprints and Application Factory patterns

Screenshots

Home page

Registration form

Inspiration

License

BSD licensed.

About

A docker compose flask template with NGINX, Postgres DB, Bootstrap 3, asset bundling+minification with webpack, starter templates, and registration/authentication. For use with cookiecutter.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 61.2%
  • HTML 16.5%
  • Shell 14.8%
  • JavaScript 5.3%
  • CSS 2.2%