npm i -g bun
bun install --frozen-lockfile
./index.ts --init
Using docker compose:
docker compose -f docker-compose.yml up
The public demo server is available at https://plv8-demo.mustosoft.io/ (mind the HTTPS protocol!).
Examples:
curl -sL http://plv8-demo.mustosoft.io/books | jq
curl -sL http://plv8-demo.mustosoft.io/authors | jq
curl -sLX POST \
-d '{"name": "mustosoft","bio": "the author"}' \
http://plv8-demo.mustosoft.io/author | jq
curl -sLX POST \
-d \
'['\
' {"title":"PostgreSQL: a Not Only DBMS","author":1,"description":"lol","isbn":1234567890123},'\
' {"title":"PLV8: Make PostgreSQL Great Again","author":1,"description":"lol again","isbn":1234567890123}'\
']' \
http://plv8-demo.mustosoft.io/books | jq
This project was created using bun init
in bun v1.1.4. Bun is a fast all-in-one JavaScript runtime.