My take on a cookiecutter recipe to create a Flask project, that can be deployed to AWS Lambda.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
hooks
{{cookiecutter.repo_name}}
.gitignore
LICENSE
README.md
cookiecutter.json

README.md

cookiecutter-flask-lambda

A simple cookiecutter template to create a web application that is deployed on AWS Lambda using Zappa and Flask. The resulting project is using Pipenv to manage its virtual environment and packages.

Usage

$ pip install cookiecutter pipenv
$ cookiecutter https://github.com/oliverandrich/cookiecutter-flask-lambda.git
$ cd my-fancy-new-project-name
$ pipenv install --dev --three
$ pipenv shell

You will be asked about your basic info (name, project name, repo name, etc.). This info will be used in your new project. Afterwards you are ready to fire up the local debugging server and start developing your application.

$ export FLASK_APP=my_fancy_new_project_name.py
$ export FLASK_DEBUG=1
$ flask run

Enjoy!

License

cookiecutter-flask-lambda is licensed under the MIT license. For more information see LICENSE.

TODOs

  • Add support for Travis CI to the cookiecutter recipe and the project template.

Changelog

0.8.1

  • Added Font Awesome 4.7.0.

0.8.0

  • Added Flask-WTF.
  • Bootstrap 4 is again part of the show. Materialize.css annoys me.

0.7.0

  • Zappa 0.41 is the new minimum version.
  • Python 3.6 is the default runtime.
  • Kicked Bootstrap.
  • Kicked Turbolinks.
  • Added materialize.css as an option.
  • Added intercooler.js as an option.

0.6.0

  • MIT License can be removed from the new project.

0.5.0

  • Stripped Flask-Ask support. Moved the Alexa stuff to a seperate and simpler cookiecutter template.
  • Moved to the simple default layout of Flask apps.

0.4.2

  • Bugfixes for https_server.py.
  • Updates to this file and the README.md of the project template.

0.4.1

  • Bugfixes to the default intents file for Alexa skills.

0.4.0

  • Added Flask-SSLify.

0.3.1

  • Bugfix for instantiating Flask-Ask.

0.3.0

  • Added a simple script to start a local HTTPS server - https_server.py. It expects a file ssl.cert and ssl.key in your project root.

0.2.1

  • Bugfixing Alexa demo app. Added a missing import.

0.2.0

  • Added optional support for Bootstrap 4, Turbolinks or jQuery.
  • Added optional Flask-Ask aka Alexa Skill support.

0.1.0

  • Initial release.

Contributors

  • Oliver Andrich