Skip to content
Opinionated Flask serverless starter kit
Python Shell Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
TEMPLATE mypy testing improved Aug 21, 2019
cloudformation
script
.ackrc
.cfnlintrc
.gitignore
.style.yapf
.travis.yml
Makefile
Pipfile
Pipfile.lock
README.md
api.paw
app.py
mypy.ini
package.json
serverless.yml
tox.ini
yarn.lock

README.md

Opinionated Serverless Flask

Comes with a lot of useful stuff ready to go.

Features

Quickstart:

Prerequisites:

brew install pipenv yarn

Create Project:

yarn global add serverless
sls install --url https://github.com/jetbridge/sls-flask --name myapp
cd myapp
make init  # install dependencies and initialize project

Python Virtual Environment:

pipenv shell  # activate python virtual environment

Do Stuff:

flask  # CLI commands
flask run --reload  # run flask dev server
sls wsgi serve  # run flask server under serverless
sls deploy  # deploy serverless app

Database:

createdb TEMPLATE
flask init-db  # recreate schema from models
flask seed  # populate with sample data

flask db  # other utilities

API Documentation:

Once your flask dev server is running:

You can’t perform that action at this time.