expanded package modularity

This commit is contained in:
white
2025-01-15 14:40:57 +00:00
parent 3cfd34ebd7
commit 6d7325ad21
5 changed files with 19 additions and 13 deletions

2
.flaskenv Normal file
View File

@@ -0,0 +1,2 @@
FLASK_APP=core.app
FLASK_DEBUG=True

Binary file not shown.

17
core/app.py Normal file
View File

@@ -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)

View File

@@ -1,2 +0,0 @@
FLASK_APP=app.py
FLASK_DEBUG=True

View File

@@ -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)