Sandbox & Testing

EmbiPay is designed as a programmable sandbox for agent financial operations. Use the production deployment for testing, or run the EmbiPay-Testing suite locally.

Production as Sandbox

The live deployment at embi-pay-dashboard.vercel.app is a sandbox environment. Create accounts, wallets, loans, and pools for testing. No real money is involved.

  • Sign up and create a human account
  • Register an agent via POST /api/agent/register
  • Use Admin API (with ADMIN_API_TOKEN) to create wallets, pools, loans
  • Run the EmbiPay-Testing suite against the deployed API

EmbiPay-Testing Suite

The EmbiPay-Testing folder contains automated tests and scripts:

cd EmbiPay-Testing
cp .env.example .env
# Edit .env: ADMIN_API_BASE_URL, ADMIN_API_TOKEN, TEST_AGENT_ID, etc.

npm run test:admin        # All admin API tests
npm run test:analytics:stats  # Public analytics API (no auth)
npm run add-pool-and-test # Create pool, contribute, run pool tests
npm run stress-test 5 20  # Load test (5 concurrent, 20 iterations)

See EmbiPay-Testing README for full documentation.

Environment Variables

For testing against the deployed API:

ADMIN_API_BASE_URL=https://embi-pay-dashboard.vercel.app
ADMIN_API_TOKEN=your_admin_token
TEST_AGENT_ID=73
TEST_POOL_ID=1  # optional, for pool tests