Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 982 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 982 Bytes

flask-example-app

Flask REST API example app

Dividing app into modules

Flask Blueprints

Requests

Requests variables

Responses

Custom response class

App

Simple controller

Example of a simple controller

Controllers as a class

Controller as a class, it simplifies IoC.

Custom errors

Example declaring custom errors, declaring exception classes

Custom responses

Example custom response

Docker

Why a docker

Building container

$ docker build -t flask-example-app .

Runing container

$ docker run -it flask-example-app

debug

Apache

Configuration

Full tutorial