Home

Awesome

cookiecutter-flask

A Flask template for cookiecutter. (Supports Python ≥ 3.8)

Build Status CodeQL CalVer

See this repo for an example project generated from the most recent version of the template.

Use it now

Docker (This is the preferred method for creating a new project)

$ git clone https://github.com/cookiecutter-flask/cookiecutter-flask.git
$ cd cookiecutter-flask

# Basic usage (You will be prompted to provide basic information about your application)
$ ./cookiecutter-docker.sh
    full_name [Steven Loria]:
    ...
# The repository for your flask app will be created in a directory with the name
# chosen in "package import name" question (default ./my_flask_app/)

# Additional arguments are available
$ ./cookiecutter-docker.sh --help
    Usage: ./cookiecutter-docker.sh [OPTIONS]

Options:
    -b, --build    Build Docker image before running cookiecutter
    -h, --help     Show this message and exit

Standard

If using standard instructions, Python ≥ 3.8 is required. A virtual environment is recommended (like virtualenv).

pip3 install cookiecutter
cookiecutter https://github.com/cookiecutter-flask/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.

Configure and Run

After you have generated the project code, a few more steps must be taken before your new app will run. The README of the generated project shows you how to configure and run the application. (You can see the template README here).

Features

Screenshots

Home page

Home page

Inspiration

License

MIT licensed.

Changelog

Unreleased

18.0.0 (09/09/2018)

0.13.0 (06/25/2017)

0.12.0 (11/06/2016)

0.11.1 (11/06/2016)

0.11.0 (09/10/2016)

0.10.1 (08/28/2016)

0.10.0 (08/28/2016)

0.9.0 (03/06/2016)

0.8.0 (11/09/2015)

Thanks @andreoliw for these contributions.

0.7.0 (04/14/2015)

0.6.0 (12/01/2014)

0.5.0 (09/29/2014)

0.4.3 (07/27/2014)

0.4.2 (07/27/2014)

0.4.1 (06/07/2014)

0.4.0 (04/19/2014)

0.3.2 (02/26/2014)

0.3.1 (02/20/2014)

0.3.0 (12/08/2013)

0.2.0 (09/21/2013)

0.1.0 (08/20/2013)