diff --git a/.flaskenv b/.flaskenv new file mode 100644 index 0000000..705204a --- /dev/null +++ b/.flaskenv @@ -0,0 +1,2 @@ +FLASK_APP=core.app +FLASK_DEBUG=True \ No newline at end of file diff --git a/core/__pycache__/app.cpython-310.pyc b/core/__pycache__/app.cpython-310.pyc new file mode 100644 index 0000000..80ea81f Binary files /dev/null and b/core/__pycache__/app.cpython-310.pyc differ diff --git a/core/app.py b/core/app.py new file mode 100644 index 0000000..68b6101 --- /dev/null +++ b/core/app.py @@ -0,0 +1,17 @@ +from flask import Flask, render_template, Response + +app = Flask(__name__, template_folder="../ui/templates/") +app.config["SECRET_KEY"] = "j9573-4952-9029-1034" + +@app.route('/') +def index(): + """ + Home page of the platform + + Contains a list of some of the streams that are currently live and the most popular categories. + """ + + return render_template('index.html') + +if __name__ == '__main__': + app.run(debug=True) \ No newline at end of file diff --git a/ui/.flaskenv b/ui/.flaskenv deleted file mode 100644 index 71845d2..0000000 --- a/ui/.flaskenv +++ /dev/null @@ -1,2 +0,0 @@ -FLASK_APP=app.py -FLASK_DEBUG=True \ No newline at end of file diff --git a/ui/app.py b/ui/app.py deleted file mode 100644 index cb3b2d2..0000000 --- a/ui/app.py +++ /dev/null @@ -1,11 +0,0 @@ -from flask import Flask, render_template, Response - -app = Flask(__name__) - -@app.route('/') -def index(): - # Main page for the live stream - return render_template('index.html') - -if __name__ == '__main__': - app.run(debug=True) \ No newline at end of file