From 70ea1d8a9c0a3571f84b7303282da04f8ea090ef Mon Sep 17 00:00:00 2001 From: Damien Ostler Date: Mon, 27 May 2024 09:52:26 -0400 Subject: [PATCH] chore :readme default env --- .default.env | 6 +++--- .env | 5 ++--- README.md | 7 +++---- app/login/page.tsx | 3 ++- docker-compose.yml | 9 --------- 5 files changed, 10 insertions(+), 20 deletions(-) diff --git a/.default.env b/.default.env index 1622127..833b576 100644 --- a/.default.env +++ b/.default.env @@ -1,3 +1,3 @@ -NEXT_APPWRITE_KEY= -NEXT_PUBLIC_APPWRITE_ENDPOINT=http://localhost/v1 -NEXT_PUBLIC_APPWRITE_PROJECT= \ No newline at end of file +NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54323 +NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJhbm9uIiwKICAgICJpc3MiOiAic3VwYWJhc2UtZGVtbyIsCiAgICAiaWF0IjogMTY0MTc2OTIwMCwKICAgICJleHAiOiAxNzk5NTM1NjAwCn0.dc_X5iR_VP_qT0zsiyj_I_OZ2T9FtRU2BBNWN8Bu4GE +NEXT_PUBLIC_ \ No newline at end of file diff --git a/.env b/.env index bc1df68..1998dcb 100644 --- a/.env +++ b/.env @@ -1,3 +1,2 @@ -NEXT_PUBLIC_SUPABASE_URL=http://localhost:8000 -NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJhbm9uIiwKICAgICJpc3MiOiAic3VwYWJhc2UtZGVtbyIsCiAgICAiaWF0IjogMTY0MTc2OTIwMCwKICAgICJleHAiOiAxNzk5NTM1NjAwCn0.dc_X5iR_VP_qT0zsiyj_I_OZ2T9FtRU2BBNWN8Bu4GE -NEXT_PUBLIC_ \ No newline at end of file +NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54323 +NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0 \ No newline at end of file diff --git a/README.md b/README.md index 7c960f1..10818ab 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ - https://nextjs.org/docs - https://supabase.com/docs/ - https://owncast.online/docs/ -- https://github.com/maildev/maildev - https://docs.npmjs.com/downloading-and-installing-node-js-and-npm - https://docs.docker.com/engine/install/ @@ -20,7 +19,7 @@ You will need supabase CLI. 1) Open your terminal and navigate to the root of the git repository. 2) Make sure that docker and docker compose are installed. -3) Run `docker-compose --env-file ./docker.env up` which will start up OwnCast and a development mail server. +3) Run `docker-compose --env-file ./docker.env up` which will start up OwnCast. 4) Run `supabase start` ## Supabase @@ -29,8 +28,8 @@ You will need supabase CLI. Run `supabase db reset`. This will wipe data. https://supabase.com/docs/guides/cli/local-development?queryGroups=access-method&access-method=kong#database-migrations -## MailDev -http://localhost:1080 +## inbucket +http://localhost:54324/monitor This is where all mail being sent shows up from the application for developers. ## OwnCast diff --git a/app/login/page.tsx b/app/login/page.tsx index bb8b783..c5349cc 100644 --- a/app/login/page.tsx +++ b/app/login/page.tsx @@ -25,12 +25,13 @@ export default async function Login({ const password = formData.get("password") as string; const supabase = createClient(); - const { error } = await supabase.auth.signInWithPassword({ + const { data:data, error } = await supabase.auth.signInWithPassword({ email, password, }); if (error) { + console.log(data); return redirect("/login?message=Could not authenticate user"); } diff --git a/docker-compose.yml b/docker-compose.yml index 6f93c38..483eb7e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,15 +21,6 @@ services: - 1935:1935 volumes: - ./data:/owncast/data - - maildev: - image: maildev/maildev:latest - restart: unless-stopped - ports: - - 1080:1080 - - 1025:1025 - volumes: - - ./data:/maildev/data volumes: db-config: