Continuously synchronizes an Orb account to a Postgres database.
Sometimes you want to analyze your billing data using SQL. Even more importantly, you want to join your billing data to your product/business data.
This server synchronizes your Orb account to a Postgres database. It can be a new database, or an existing Postgres database.
orb
in a Postgres database, with tables & columns matching Orb./webhooks
endpoint that listens to any Orb webhooks.Not implemented
orb-sync-lib
is not yet published as standalone npm package (could be used in serverless functions or anywhere else)db/migrations
manually for nowDevelop
cd docker && docker-compose up
mv .env.sample .env
and adjust values as necessarynpm run dev:node-fastify
to start the local servernpm run test
to run tests across the repoBuilding Docker
cd apps/node-fastify
docker build -t orb-sync-engine .
# Ensure env vars are set
docker run -p 8080:8080 orb-sync-engine
Inspired by stripe-sync-engine