Skip to content
Closed
Show file tree
Hide file tree
Changes from all 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
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ node_modules

# Local env files
.env
.env.*
.env.localdb
.env.productiondb
# The same for shell variants
.env.*sh
.env.localdb.*sh
.env.productiondb.*sh

# Testing
coverage
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Learn more about how monorepos improve development workflows [here](https://verc
- [typescript-config](https://github.com/DiscourseGraphs/discourse-graph/tree/main/packages/typescript-config): Shared tsconfig.jsons
- [eslint-config](https://github.com/DiscourseGraphs/discourse-graph/tree/main/packages/eslint-config): ESLint preset
- [ui](https://github.com/DiscourseGraphs/discourse-graph/tree/main/packages/ui): Core React components
- [database](https://github.com/DiscourseGraphs/discourse-graph/tree/main/packages/database): Database configuration

### Getting Started

Expand Down Expand Up @@ -59,6 +60,8 @@ You can use the `--filter` flag to run a single application, eg:
turbo dev --filter roam
```

1. Set up a supabase environment. This will cache and optimize some semantic queries. You may not need both environments, but you cannot develop unless `SUPABASE_URL` and `SUPABASE_ANON_KEY` are defined. Full instructions [here](https://github.com/DiscourseGraphs/discourse-graph/tree/main/packages/database/README.md).

#### Roam

- go to your graph, open up settings, and go to the extensions tab
Expand Down
8 changes: 7 additions & 1 deletion apps/obsidian/.env.example
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# OBSIDIAN_PLUGIN_PATH="path/to/your/obsidian/plugins/folder"
# OBSIDIAN_PLUGIN_PATH="path/to/your/obsidian/plugins/folder"
# SUPABASE_WORKDIR=/full/path/to/packages/database
SUPABASE_URL=http://127.0.0.1:54321
SUPABASE_PROJECT_ID=discourse-graphs
POSTGRES_URL=postgresql://postgres:postgres@127.0.0.1:54322/postgres
# SUPABASE_JWT_SECRET=<'JWT secret' value from supabase start>
# SUPABASE_ANON_KEY=<'anon key' value from supabase start>
5 changes: 5 additions & 0 deletions apps/obsidian/.env.productiondb.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# OBSIDIAN_PLUGIN_PATH="path/to/your/obsidian/plugins/folder"
# SUPABASE_WORKDIR=/full/path/to/packages/database
SUPABASE_URL=https://zytfjzqyijgagqxrzbmz.supabase.co
SUPABASE_PROJECT_ID=zytfjzqyijgagqxrzbmz
SUPABASE_ANON_KEY=<obtain from 1password>
8 changes: 7 additions & 1 deletion apps/roam/.env.example
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# BLOB_READ_WRITE_TOKEN=
# BLOB_READ_WRITE_TOKEN =
# SUPABASE_WORKDIR=/full/path/to/packages/database
SUPABASE_URL=http://127.0.0.1:54321
SUPABASE_PROJECT_ID=discourse-graphs
POSTGRES_URL=postgresql://postgres:postgres@127.0.0.1:54322/postgres
# SUPABASE_JWT_SECRET=<'JWT secret' value from supabase start>
# SUPABASE_ANON_KEY=<'anon key' value from supabase start>
5 changes: 5 additions & 0 deletions apps/roam/.env.productiondb.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# BLOB_READ_WRITE_TOKEN =
# SUPABASE_WORKDIR=/full/path/to/packages/database
SUPABASE_URL=https://zytfjzqyijgagqxrzbmz.supabase.co
SUPABASE_PROJECT_ID=zytfjzqyijgagqxrzbmz
SUPABASE_ANON_KEY=<obtain from 1password>
10 changes: 9 additions & 1 deletion apps/website/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# NEXT_PUBLIC_POSTHOG_HOST=https://us.i.posthog.com
# RESEND_API_KEY=
# NEXT_PUBLIC_POSTHOG_KEY=phc_KllQh2hOMmXJ3YwdiLHswb1CfOaEWzoC30mA0u3ZJgp
# NEXT_PUBLIC_POSTHOG_HOST=https://us.i.posthog.com
# SUPABASE_WORKDIR=/full/path/to/packages/database
SUPABASE_URL=http://127.0.0.1:54321
SUPABASE_PROJECT_ID=discourse-graphs
POSTGRES_URL=postgresql://postgres:postgres@127.0.0.1:54322/postgres
# SUPABASE_JWT_SECRET=<'JWT secret' value from supabase start>
# SUPABASE_ANON_KEY=<'anon key' value from supabase start>
# ⚠️ Never commit the real key below – keep it in a private *.env file
# SUPABASE_SERVICE_ROLE_KEY=<'service_role key' value from supabase start>
9 changes: 9 additions & 0 deletions apps/website/.env.productiondb.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# NEXT_PUBLIC_POSTHOG_HOST=https://us.i.posthog.com
# RESEND_API_KEY=
# NEXT_PUBLIC_POSTHOG_KEY=phc_KllQh2hOMmXJ3YwdiLHswb1CfOaEWzoC30mA0u3ZJgp
# SUPABASE_WORKDIR=/full/path/to/packages/database
SUPABASE_URL=https://zytfjzqyijgagqxrzbmz.supabase.co
SUPABASE_PROJECT_ID=zytfjzqyijgagqxrzbmz
SUPABASE_ANON_KEY=<obtain from 1password>
SUPABASE_SERVICE_ROLE_KEY=<obtain from 1password>
SUPABASE_JWT_SECRET=<obtain from 1password>
Loading