Web shell to interact with PostgreSQL in the browser
- Run
npx serve
and 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
-
Save the state to a file clicking the
Save state to file
button -
Put the state file into the
state
folder and compress it using zstd:
zstd --ultra -22 state/v86state.bin && rm state/v86state.bin
- Go to
http://localhost:3000
, instant boot!