From 3cfd34ebd7a2323099e203e14f94cc9ab931ad67 Mon Sep 17 00:00:00 2001 From: white <122345776@umail.ucc.ie> Date: Wed, 15 Jan 2025 12:38:42 +0000 Subject: [PATCH 1/5] Added Packages --- .flaskenv => ui/.flaskenv | 0 app.py => ui/app.py | 0 {templates => ui/templates}/base.html | 0 {templates => ui/templates}/index.html | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename .flaskenv => ui/.flaskenv (100%) rename app.py => ui/app.py (100%) rename {templates => ui/templates}/base.html (100%) rename {templates => ui/templates}/index.html (100%) diff --git a/.flaskenv b/ui/.flaskenv similarity index 100% rename from .flaskenv rename to ui/.flaskenv diff --git a/app.py b/ui/app.py similarity index 100% rename from app.py rename to ui/app.py diff --git a/templates/base.html b/ui/templates/base.html similarity index 100% rename from templates/base.html rename to ui/templates/base.html diff --git a/templates/index.html b/ui/templates/index.html similarity index 100% rename from templates/index.html rename to ui/templates/index.html From fcfe0a920eeae042ac5d3823af6ba89820ab696b Mon Sep 17 00:00:00 2001 From: Christopher Ahern <115749466+Chris-1010@users.noreply.github.com> Date: Wed, 15 Jan 2025 13:56:16 +0000 Subject: [PATCH 2/5] Create README.md --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..d6ce81e --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# **Team 11 Project Proposal** + +## Main Idea + +Our main idea for this project is to create a live streaming service. This project will involve a front end that users can access to watch live streams and a back end that controls the functionality of the web app. + +There will be 3 layers of access control: + + + +1. No Access - user not logged in \ +Users who are not logged in will only be able to view live streams. \ + +2. Regular Access - user logged in (majority of users on the site) \ +Logged-in users will be able to donate to other users who are streaming (possibly via a third party service such as Stripe), comment on a live stream, and perform other features like following different users. Alternatively, a logged-in user may wish to livestream themselves, in which they become a ‘creator’. \ + +3. Admin Access - admin user logged in \ +Admin users will have full control over the web app, including being able to do everything the two levels below can do and more, for example banning accounts when necessary. + +We will create a group Github repository on which all of our work will be stored. + +## Programming Languages + +In terms of how we would program this service, we have decided to use HTML, CSS and JavaScript for the front end, so something like React could be used to facilitate ease of creation. Then for the backend, we would use a language like Python that has a web framework like Flask to allow us to create functionality on the web app. Python, we believe, is more suited to this particular project as it has more useful modules and all group members are more familiar with its syntax and behaviour. However, we have also considered using Go. As well as this, a database would be needed to allow us to store user information and metadata. We are planning on using MySQL or PostgreSQL depending on which better meets our needs, when the time comes. We may also use TypeScript either on the web app or for writing documentation. From 01f4727a798a6411ccc527431aaa05ed87419569 Mon Sep 17 00:00:00 2001 From: Christopher Ahern <115749466+Chris-1010@users.noreply.github.com> Date: Wed, 15 Jan 2025 13:56:55 +0000 Subject: [PATCH 3/5] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d6ce81e..e8609f8 100644 --- a/README.md +++ b/README.md @@ -8,13 +8,13 @@ There will be 3 layers of access control: -1. No Access - user not logged in \ -Users who are not logged in will only be able to view live streams. \ +1. No Access - user not logged in +Users who are not logged in will only be able to view live streams. -2. Regular Access - user logged in (majority of users on the site) \ -Logged-in users will be able to donate to other users who are streaming (possibly via a third party service such as Stripe), comment on a live stream, and perform other features like following different users. Alternatively, a logged-in user may wish to livestream themselves, in which they become a ‘creator’. \ +2. Regular Access - user logged in (majority of users on the site) +Logged-in users will be able to donate to other users who are streaming (possibly via a third party service such as Stripe), comment on a live stream, and perform other features like following different users. Alternatively, a logged-in user may wish to livestream themselves, in which they become a ‘creator’. -3. Admin Access - admin user logged in \ +3. Admin Access - admin user logged in Admin users will have full control over the web app, including being able to do everything the two levels below can do and more, for example banning accounts when necessary. We will create a group Github repository on which all of our work will be stored. 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 4/5] 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 From 96fae93a47701889c4382fd987ce7152f2acada0 Mon Sep 17 00:00:00 2001 From: white <122345776@umail.ucc.ie> Date: Wed, 15 Jan 2025 14:42:27 +0000 Subject: [PATCH 5/5] Added stylesheet --- ui/static/styles.css | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 ui/static/styles.css diff --git a/ui/static/styles.css b/ui/static/styles.css new file mode 100644 index 0000000..e69de29