This guide replaces docs/getting-started.pdf; keep it in sync with code
changes going forward since Markdown is easier to review and search.
- Node.js 18+
- PostgreSQL running locally (or reachable) with a database created —
or run
docker compose upfrom the repo root instead, which provisions Postgres and runs migrations for you (seeCONTRIBUTING.md) - A Stellar testnet funding account (secret key)
- Install dependencies:
npm install
- Copy the environment template and fill in your values:
cp .env.example .env
- Run database migrations:
npm run migration:run
- Start the app in watch mode:
npm run start:dev
- The app should boot without errors on the port set by
PORT(default3000). GET /health(if enabled) should return a 200 response.
CLAIM_BASE_URL: Base URL used for building recipient claim redemption links.- Required when
NODE_ENV=production(must be a valid http or https URL without a trailing slash). In development/test environments, defaults tohttps://claim.bridgelet.ioif not specified. - Link format contract: The SDK generates claim links matching
<CLAIM_BASE_URL>/c/<token>. Frontend claim portals should route/c/:tokento their claim redemption handler.
- Required when
CORS_ORIGINS: Comma-separated list of allowed origins for incoming cross-origin requests, or*to allow all origins. Defaults to*if unset.
See README.md for architecture notes and docs/api-reference.md for the
full API reference.