From aa829dd3fbf33d1c74a8bb778147da6c4802eaa7 Mon Sep 17 00:00:00 2001 From: Johannes Thumshirn Date: Thu, 25 Feb 2021 15:17:31 +0100 Subject: [PATCH] app: add basic flask app Add a basic Flask "Hello World" as a starting point. Signed-off-by: Johannes Thumshirn --- app.py | 14 ++++++++++++++ requirements.txt | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 app.py create mode 100644 requirements.txt diff --git a/app.py b/app.py new file mode 100644 index 0000000..c58ea90 --- /dev/null +++ b/app.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python3 +# vim: set sw=4 ts=4 ex +from flask import Flask, render_template, url_for +from flask_flatpages import FlatPages +from datetime import datetime + +app = Flask(__name__) + +@app.route("/") +def hello_world(): + return 'Hello, World!' + +if __name__ == '__main__': + app.run(host='0.0.0.0') diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..cbc7c45 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +flask +flask_flatpages