Send corrections to a CIGALE BeamUp server.
import { sendCorrections } from "@cigale/beamup";
await sendCorrections({
origin: "https://beamup.example.com",
corrections: [ ... ]
})The server requires a Postgres database. Provide its connection string via the DATABASE_URL environment variable.
Use the Docker image:
docker run -p 8000:3000 -e PROD=true -e DATABASE_URL=postgres://user:pass@host:5432/beamup ghcr.io/cigaleapp/beamup:latest-p: listen on host machine's :8000-e: set to production mode-e DATABASE_URL: connection string to your Postgres database
Or use the provided docker-compose.yaml, which starts the app alongside a Postgres instance:
docker compose upTo 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.