chore :readme default env

This commit is contained in:
Damien Ostler 2024-05-27 09:52:26 -04:00
parent 97eba7457d
commit 70ea1d8a9c
5 changed files with 10 additions and 20 deletions

View File

@ -1,3 +1,3 @@
NEXT_APPWRITE_KEY=<API_KEY> NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54323
NEXT_PUBLIC_APPWRITE_ENDPOINT=http://localhost/v1 NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJhbm9uIiwKICAgICJpc3MiOiAic3VwYWJhc2UtZGVtbyIsCiAgICAiaWF0IjogMTY0MTc2OTIwMCwKICAgICJleHAiOiAxNzk5NTM1NjAwCn0.dc_X5iR_VP_qT0zsiyj_I_OZ2T9FtRU2BBNWN8Bu4GE
NEXT_PUBLIC_APPWRITE_PROJECT=<PROJECT_ID> NEXT_PUBLIC_

5
.env
View File

@ -1,3 +1,2 @@
NEXT_PUBLIC_SUPABASE_URL=http://localhost:8000 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_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0
NEXT_PUBLIC_

View File

@ -7,7 +7,6 @@
- https://nextjs.org/docs - https://nextjs.org/docs
- https://supabase.com/docs/ - https://supabase.com/docs/
- https://owncast.online/docs/ - https://owncast.online/docs/
- https://github.com/maildev/maildev
- https://docs.npmjs.com/downloading-and-installing-node-js-and-npm - https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
- https://docs.docker.com/engine/install/ - 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. 1) Open your terminal and navigate to the root of the git repository.
2) Make sure that docker and docker compose are installed. 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` 4) Run `supabase start`
## Supabase ## Supabase
@ -29,8 +28,8 @@ You will need supabase CLI.
Run `supabase db reset`. This will wipe data. Run `supabase db reset`. This will wipe data.
https://supabase.com/docs/guides/cli/local-development?queryGroups=access-method&access-method=kong#database-migrations https://supabase.com/docs/guides/cli/local-development?queryGroups=access-method&access-method=kong#database-migrations
## MailDev ## inbucket
http://localhost:1080 http://localhost:54324/monitor
This is where all mail being sent shows up from the application for developers. This is where all mail being sent shows up from the application for developers.
## OwnCast ## OwnCast

View File

@ -25,12 +25,13 @@ export default async function Login({
const password = formData.get("password") as string; const password = formData.get("password") as string;
const supabase = createClient(); const supabase = createClient();
const { error } = await supabase.auth.signInWithPassword({ const { data:data, error } = await supabase.auth.signInWithPassword({
email, email,
password, password,
}); });
if (error) { if (error) {
console.log(data);
return redirect("/login?message=Could not authenticate user"); return redirect("/login?message=Could not authenticate user");
} }

View File

@ -22,14 +22,5 @@ services:
volumes: volumes:
- ./data:/owncast/data - ./data:/owncast/data
maildev:
image: maildev/maildev:latest
restart: unless-stopped
ports:
- 1080:1080
- 1025:1025
volumes:
- ./data:/maildev/data
volumes: volumes:
db-config: db-config: