From 04483a8865e39d00411c538f09b1e18a42b4a9f4 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Wed, 23 Oct 2013 12:35:44 +0300 Subject: Initial skeleton --- Procfile | 1 + app.py | 14 ++++++++++++++ requirements.txt | 7 +++++++ 3 files changed, 22 insertions(+) create mode 100644 Procfile create mode 100644 app.py create mode 100644 requirements.txt diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..2e35818 --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: python app.py diff --git a/app.py b/app.py new file mode 100644 index 0000000..abc6127 --- /dev/null +++ b/app.py @@ -0,0 +1,14 @@ +from flask import Flask +from flask.ext import restful + +app = Flask(__name__) +api = restful.Api(app) + +class HelloWorld(restful.Resource): + def get(self): + return {'hello': 'world'} + +api.add_resource(HelloWorld, '/') + +if __name__ == '__main__': + app.run(debug=True) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..02b0915 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,7 @@ +Flask==0.10.1 +Flask-RESTful==0.2.5 +Jinja2==2.7.1 +MarkupSafe==0.18 +Werkzeug==0.9.4 +itsdangerous==0.23 +wsgiref==0.1.2 -- cgit v1.3.1