Send corrections to a CIGALE BeamUp server.
import { sendCorrections } from "@cigale/beamup";
await sendCorrections({
origin: "https://beamup.example.com",
corrections: [ ... ]
})Use the Docker image:
docker run -p 8000:3000 -e PROD=true -v ./db/:/app/db/:rw ghcr.io/cigaleapp/beamup:latest-p: listen on host machine's :8000-e: set to production mode-v: mount host machine's ./db directory to container's /app/db (make sure that you can write to the dih)
To install dependencies:
bun installTo run:
bun run src/index.tsTo develop:
bun run --watch src/index.tsThis project was created using bun init in bun v1.2.21. Bun is a fast all-in-one JavaScript runtime.