Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demuthsa #12

Merged
merged 7 commits into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions trivia-forge/backend/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SUPABASE_URL=https://yxdrsdfocuonvorowgaa.supabase.co
SUPABASE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inl4ZHJzZGZvY3VvbnZvcm93Z2FhIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTcxMzU3ODY2OSwiZXhwIjoyMDI5MTU0NjY5fQ.VoDX0KI3v8kWCZpVs-RI6DO0f02HAzQ3n_9E9HyaYyc
1 change: 1 addition & 0 deletions trivia-forge/backend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
Binary file modified trivia-forge/backend/__pycache__/config.cpython-310.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion trivia-forge/backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
app = Flask(__name__)

SUPABASE_URL = os.getenv('SUPABASE_URL')
SUPABASE_ANON_KEY = os.getenv('SUPABASE_ANON_KEY')
SUPABASE_KEY = os.getenv('SUPABASE_KEY')

@app.route('/')
def home():
Expand Down
4 changes: 2 additions & 2 deletions trivia-forge/backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ def create_app():
app = Flask(__name__)
config = dotenv_values("./.env")
url: str = config.get('SUPABASE_URL')
#print("url:",url)
# print("url:",url)
key: str = config.get('SUPABASE_KEY')
#print("key:",key)
# print("key:",key)
supabase: Client = create_client(url, key)
app.config['Client'] = supabase
return app
Expand Down
693 changes: 693 additions & 0 deletions trivia-forge/backend/poetry.lock

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions trivia-forge/backend/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[tool.poetry]
name = "backend"
version = "0.1.0"
description = ""
authors = []
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.10"
supabase = "^2.4.3"
flask = "^3.0.3"
python-dotenv = "^1.0.1"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
88 changes: 88 additions & 0 deletions trivia-forge/dist/assets/index-BE7_8Dwe.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions trivia-forge/dist/assets/index-DkrhZ241.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions trivia-forge/dist/assets/react-CHdo91hT.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions trivia-forge/dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
<script type="module" crossorigin src="/assets/index-BE7_8Dwe.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DkrhZ241.css">
</head>

<body>
<div id="root"></div>
</body>

</html>
1 change: 1 addition & 0 deletions trivia-forge/dist/vite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.