Skip to content

Commit

Permalink
Merge pull request #63 from hypercerts-org/feat/multi_supabase_setup
Browse files Browse the repository at this point in the history
Feat/multi supabase setup
  • Loading branch information
bitbeckers authored Jun 6, 2024
2 parents 4e7a58b + cc37532 commit f5d75b1
Show file tree
Hide file tree
Showing 6 changed files with 1,020 additions and 955 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "lib/hypercerts-indexer"]
path = lib/hypercerts-indexer
url = https://github.com/hypercerts-org/hypercerts-indexer
1 change: 1 addition & 0 deletions lib/hypercerts-indexer
Submodule hypercerts-indexer added at 0df7a2
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@
"dev": "nodemon",
"build": "rimraf dist && tsoa spec-and-routes && swc src --out-dir dist --copy-files",
"start": "node -r dotenv/config dist/src/index.js",
"supabase:types": "supabase gen types typescript --local > ./src/types/supabaseData.ts",
"integration": "concurrently -c \"green,blue\" --names \"CACHE,DATA\" \"pnpm --dir ./lib/hypercerts-indexer run dev\" \"pnpm run dev\"",
"supabase:reset:all": "concurrently -c \"blue,green\" --names \"DATA,CACHE\" \"npm run supabase:reset:data\" \"npm run supabase:reset:cache\"",
"supabase:start:all": "concurrently -c \"blue,green\" --names \"DATA,CACHE\" \"npm run supabase:start:data\" \"npm run supabase:start:cache\"",
"supabase:types:all": "concurrently -c \"blue,green\" --names \"DATA,CACHE\" \"npm run supabase:types:data\" \"npm run supabase:types:cache\"",
"supabase:reset:cache": "supabase db reset --workdir ./lib/hypercerts-indexer",
"supabase:reset:data": "supabase db reset --workdir ./",
"supabase:start:cache": "supabase start --workdir ./lib/hypercerts-indexer",
"supabase:start:data": "supabase start",
"supabase:types:cache": "supabase gen types typescript --local --workdir ./lib/hypercerts-indexer > ./src/types/supabaseCaching.ts",
"supabase:types:data": "supabase gen types typescript --local > ./src/types/supabaseData.ts",
"preintegration": "pnpm --dir ./lib/hypercerts-indexer i",
"lint": "eslint",
"test": "vitest"
},
Expand Down
2 changes: 1 addition & 1 deletion seed.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import postgres from "postgres";

export default defineConfig({
adapter: () => {
const client = postgres("postgresql://postgres:postgres@localhost:54322/postgres");
const client = postgres("postgresql://postgres:postgres@localhost:64322/postgres");
return new SeedPostgres(client);
},
});
Loading

0 comments on commit f5d75b1

Please sign in to comment.