diff options
| author | Yuval Adam <yuv.adm@gmail.com> | 2013-10-23 12:35:44 +0300 |
|---|---|---|
| committer | Yuval Adam <yuv.adm@gmail.com> | 2013-10-23 12:35:44 +0300 |
| commit | 04483a8865e39d00411c538f09b1e18a42b4a9f4 (patch) | |
| tree | d6f3b6c0c6105db772e74a02e4548d4320fd1a61 | |
| parent | 46c77ddceba6338004f2477372f7e48ab004228c (diff) | |
Initial skeleton
| -rw-r--r-- | Procfile | 1 | ||||
| -rw-r--r-- | app.py | 14 | ||||
| -rw-r--r-- | requirements.txt | 7 |
3 files changed, 22 insertions, 0 deletions
diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..2e35818 --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: python 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 |
