Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

How to use the Consumer Notebook API with Python's Flask microframework and Heroku.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 static
Octocat-spinner-32 templates
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Procfile
Octocat-spinner-32 README.md
Octocat-spinner-32 requirements.txt
Octocat-spinner-32 runserver.py
Octocat-spinner-32 test.py
README.md

Flask Sample Project

By @audreyr.

This is a sample Flask project that uses the Consumer Notebook API.

Running it locally

In your terminal::

$ git clone https://github.com/consumernotebook/cn-flask-sample.git
$ cd cn-flask-sample
$ mkvirtualenv cn-flask-sample
$ pip install -r requirements.txt

To run it in debug mode locally::

$ python runserver.py

In your browser, go to http://127.0.0.1:5000/

Note: you can also run it with Foreman, but you won't get the debugger::

$ foreman start

Deploying it on Heroku

Follow the deployment instructions at https://github.com/zachwill/flask_heroku.

Credits

This demo is mostly based on the code from the Flask Heroku project, which is a template to get your Flask app running on Heroku as fast as possible.

Something went wrong with that request. Please try again.