corbinbs / flask-api-talk

Draft of intro talk about implementing APIs with Flask

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flask-api-talk

This is a first draft of an introductory talk on implementing APIs with Flask

The talk introduces Flask via a single module application and then discusses common API concerns and shows how one might go about dealing with those in a larger application.

Get Started with Examples

Setup a new virtualenv with the appropriate dependencies

$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt 

Fire up the IPython notebook if you'd like to interact with the APIs using it

$ ipython notebook

Run the single module example with the Flask dev server

$ cd single-module
$ python happy_birthday.py

Run the classy API example using gunicorn via the included Procfile

$ cd classy-api
$ honcho start

About

Draft of intro talk about implementing APIs with Flask


Languages

Language:Python 100.0%