Browse Source

Added Python dummmy app

Andreas Kopmann 3 years ago
parent
commit
336dfe22a6
2 changed files with 32 additions and 0 deletions
  1. 21 0
      app.py
  2. 11 0
      requirements.txt

+ 21 - 0
app.py

@@ -0,0 +1,21 @@
+'''
+Created on 04-Sep-2019
+
+@author: bkadambi
+'''
+
+# -*- coding: UTF-8 -*-
+"""
+hello_flask: First Python-Flask webapp
+"""
+from flask import Flask  # From module flask import class Flask
+app = Flask(__name__)    # Construct an instance of Flask class for our webapp
+
+@app.route('/')   # URL '/' to be handled by main() route handler
+def main():
+    """Say hello"""
+    return 'Hello, world!'
+
+if __name__ == '__main__':  # Script executed directly?
+    print("Hello, World. Uses S2I to build the application.")
+    app.run(host="0.0.0.0", port=8080, debug=True,use_reloader=True)  # Launch built-in web server and run this Flask webapp

+ 11 - 0
requirements.txt

@@ -0,0 +1,11 @@
+aniso8601==7.0.0
+Click==7.0
+Flask==1.1.1
+Flask-RESTful==0.3.7
+itsdangerous==1.1.0
+Jinja2==2.10.1
+MarkupSafe==1.1.1
+pytz==2019.2
+six==1.12.0
+Werkzeug==0.15.5
+