From 715030199dbde8c244555d9a7ec5ef58059e04cb Mon Sep 17 00:00:00 2001 From: winter-x64 Date: Sat, 15 Mar 2025 03:44:45 +0530 Subject: [PATCH] update: nab bar --- nano/database.py | 15 +++++++++++++++ nano/templates/landing_page.html | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 nano/database.py diff --git a/nano/database.py b/nano/database.py new file mode 100644 index 0000000..9343194 --- /dev/null +++ b/nano/database.py @@ -0,0 +1,15 @@ +import os + +from supabase import Client, create_client + +# Supabase configuration +SUPABASE_URL = os.getenv("SUPABASE_URL") +SUPABASE_KEY = os.getenv("SUPABASE_KEY") + +# Create Supabase client +supabase: Client = create_client(SUPABASE_URL, SUPABASE_KEY) + + +# Dependency to get the Supabase client +def get_db(): + return supabase diff --git a/nano/templates/landing_page.html b/nano/templates/landing_page.html index 0ee5b5d..909ca32 100644 --- a/nano/templates/landing_page.html +++ b/nano/templates/landing_page.html @@ -3,7 +3,7 @@ - Minimal Blog + NanoBlog