Overview & Background
Onboarding new open-source contributors can be hindered by complex local setups involving Postgres, Redis, and live Stellar Testnet RPCs. A one-click mock development sandbox allows contributors to spin up the entire stack with realistic seed data in seconds.
Technical Specification & Architecture
- Mock Seed Data Generator (
scripts/seed-mock-data.ts):
- Seed 20 diverse streams (Active, Paused, Completed, Cancelled, Vesting Cliffs) across 5 mock users.
- Seed mock stream event histories with timestamps spanning the last 30 days.
- Single Startup Script (
npm run dev:mock):
- Launches Postgres and Redis via Docker Compose.
- Runs Prisma migrations and seeds mock dataset.
- Boots backend in sandbox mode with mock Soroban RPC.
- Starts frontend on
localhost:3000.
Target Files
scripts/seed-mock-data.ts
package.json
docs/DEVELOPMENT.md
Acceptance Criteria
Overview & Background
Onboarding new open-source contributors can be hindered by complex local setups involving Postgres, Redis, and live Stellar Testnet RPCs. A one-click mock development sandbox allows contributors to spin up the entire stack with realistic seed data in seconds.
Technical Specification & Architecture
scripts/seed-mock-data.ts):npm run dev:mock):localhost:3000.Target Files
scripts/seed-mock-data.tspackage.jsondocs/DEVELOPMENT.mdAcceptance Criteria
npm run dev:mockstarts the full local stack with rich prefilled demo streams.docs/DEVELOPMENT.md.