From 6d7325ad212ad04699f5b7e3eb6d4347697f23eb Mon Sep 17 00:00:00 2001 From: white <122345776@umail.ucc.ie> Date: Wed, 15 Jan 2025 14:40:57 +0000 Subject: [PATCH] expanded package modularity --- .flaskenv | 2 ++ core/__pycache__/app.cpython-310.pyc | Bin 0 -> 706 bytes core/app.py | 17 +++++++++++++++++ ui/.flaskenv | 2 -- ui/app.py | 11 ----------- 5 files changed, 19 insertions(+), 13 deletions(-) create mode 100644 .flaskenv create mode 100644 core/__pycache__/app.cpython-310.pyc create mode 100644 core/app.py delete mode 100644 ui/.flaskenv delete mode 100644 ui/app.py 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 0000000000000000000000000000000000000000..80ea81f2fa360f96aea3e3d26f37e22b2ebc4080 GIT binary patch literal 706 zcmYjP!EVz)5Z$%o)G>{kLqEV*BPA(KE0n52NFfLbflyN<8dm| z7y1uyBcDn&VyZP~Xc|!^LX_Ncb!sIEseuse* zPIDsYoC;^|2zTyM0u)-@;qJ9F_jn7u^EUU633y+(c>5dWTipLduISuHRA=p|hluF# zfIqmVl<@6Y<5Bk)Rwt2Ld(U&G*Y%Eqf`dv7h%#peYX1auDGLpo-e54SvffBDIhG_5<mNZI1x#op zGZQieVOlAi)8v;3{{SH?cvDzN_!;Q6k!3uQqO1(4aF%9Jq!5o356^(9cqSL-!peE0Ra#hXzTYM Dt=PSk literal 0 HcmV?d00001 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