Skip to content

feat: store deployed databases info in Supabase DB #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 47 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
76db8f0
wip
jgoux Aug 8, 2024
b64d4df
store credentials in the database and fetch them in db-service
jgoux Aug 8, 2024
db62b5f
read-only works
jgoux Aug 8, 2024
dbae56c
set pg-gateway
jgoux Aug 9, 2024
e1a8f95
Merge branch 'feat/upload-db' into feat/deploy-db-to-supabase
jgoux Aug 9, 2024
966af04
group components
jgoux Aug 9, 2024
53609bc
deps
jgoux Aug 9, 2024
5ec5878
bump deps
jgoux Aug 9, 2024
5cc4359
psql connection string is on the frontend
jgoux Aug 9, 2024
902b0cf
make copy somewhat working
jgoux Aug 9, 2024
5daac37
wip
jgoux Aug 12, 2024
f1a9a28
Merge branch 'feat/upload-db' into feat/deploy-db-to-supabase
jgoux Aug 12, 2024
f0190f3
fix a few bugs
jgoux Aug 12, 2024
8c24644
split sidebar into components
jgoux Aug 12, 2024
cc35656
Merge branch 'feat/upload-db' into feat/deploy-db-to-supabase
jgoux Aug 13, 2024
7eff3f1
handle conflicts
jgoux Aug 13, 2024
f646608
fix conflicts
jgoux Aug 13, 2024
50c33c7
dialog doesn't need to be controlled
jgoux Aug 13, 2024
24eb981
rename database -> local database
jgoux Aug 13, 2024
fc9ee58
database -> local database
jgoux Aug 13, 2024
5485d99
fix copy button
jgoux Aug 13, 2024
14455e4
ui tweaks
jgoux Aug 13, 2024
c6f57d5
more tweaks
jgoux Aug 13, 2024
72d6cbc
deployment is working
jgoux Aug 13, 2024
916dd07
deployed database fields
jgoux Aug 13, 2024
2900f8e
encode password
jgoux Aug 13, 2024
7e09415
deployed fields
jgoux Aug 13, 2024
2f472ed
remove log
jgoux Aug 13, 2024
f766a3b
reset password route
jgoux Aug 13, 2024
d97aba9
reset password
jgoux Aug 13, 2024
f3451e9
database deletion
jgoux Aug 13, 2024
1b4887a
delete confirmation dialog
jgoux Aug 14, 2024
2bac2bd
redeploy confirmation
jgoux Aug 14, 2024
b560860
validate dump size client side
jgoux Aug 14, 2024
cbfa62e
validate dump size server-side
jgoux Aug 14, 2024
92735e5
Merge branch 'feat/upload-db' into feat/deploy-db-to-supabase
jgoux Aug 14, 2024
0bc7ee4
isolate database type and harmonize packages
jgoux Aug 14, 2024
64c33ad
add type check to proxy
jgoux Aug 14, 2024
eff29dd
remove server version so it's dynamically generated
jgoux Aug 14, 2024
dbd3591
don't print internal error
jgoux Aug 14, 2024
462f44e
hide port in the database url as it's the default
jgoux Aug 14, 2024
5b925b0
rely on onTlsUpgrade only for TLS validation
jgoux Aug 14, 2024
01080f6
the build is alive
jgoux Aug 14, 2024
161c98f
put supabase config back in the root
jgoux Aug 14, 2024
d8683b4
rename
jgoux Aug 14, 2024
bed20a6
dynamic server version
jgoux Aug 14, 2024
7332000
add PGlite version
jgoux Aug 14, 2024
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
17 changes: 16 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
{
"deno.enablePaths": ["supabase/functions"],
"deno.lint": true,
"deno.unstable": true
"deno.unstable": true,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ How is this possible? [PGlite](https://pglite.dev/), a WASM version of Postgres

This is a monorepo split into the following projects:

- [Frontend (Next.js)](./apps/postgres-new/): This contains the primary web app built with Next.js
- [Backend (pg-gateway)](./apps/db-service/): This serves S3-backed PGlite databases over the PG wire protocol using [pg-gateway](https://github.com/supabase-community/pg-gateway)
- [Frontend (Next.js)](./apps/web/): This contains the primary web app built with Next.js
- [Backend (pg-gateway)](./apps/proxy/): This serves S3-backed PGlite databases over the PG wire protocol using [pg-gateway](https://github.com/supabase-community/pg-gateway)

## Video

Expand Down
5 changes: 0 additions & 5 deletions apps/db-service/.dockerignore

This file was deleted.

181 changes: 0 additions & 181 deletions apps/db-service/src/index.ts

This file was deleted.

62 changes: 0 additions & 62 deletions apps/postgres-new/app/api/databases/[id]/upload/route.ts

This file was deleted.

Loading