Skip to content

mandrewcito/flask-example-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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