Web shell to interact with PostgreSQL in the browser
- Run
npx serveand go tohttp://localhost:3000 - There is no step 2
-
Run the build process in the buildroot package
-
Synchronize the new filesystem using:
./scripts/sync-fs.sh-
Go the
http://localhost:3000?boot=true -
Once the boot is completed, clear the cache and start psql (the runtime assumes psql is running when it loads a snapshot):
echo 3 > /proc/sys/vm/drop_caches && echo 3 > /proc/sys/kernel/printk && reset && psql -U postgres -d ivorysql -p 1521 -
Save the state to a file clicking the
Save state to filebutton -
Put the state file into the
statefolder and compress it using zstd:
zstd --ultra -22 state/v86state.bin && rm state/v86state.bin- Go to
http://localhost:3000, instant boot!