Paygent is a Next.js monolith for AI-assisted supplier payouts for Nigerian SMEs, built on ZendFi primitives.
- Install dependencies:
npm install- Create environment file:
cp .env.example .env.local- Run development server:
npm run dev- Open
http://localhost:3000.
src/app- UI and route handlerssrc/lib- domain services (policy, audit, provider clients)migrations- SQL schema versionsdocs- execution blueprint and implementation checklists
docs/EXECUTION_BLUEPRINT.mddocs/IMPLEMENTATION_CHECKLIST.mddocs/API_CONTRACTS.mddocs/DB_ROLLOUT.mddocs/DEPLOY_CHECKLIST.mdmigrations/0001_paygent_mvp.sql
- Default:
PAYGENT_STORAGE_BACKEND=file(local development) - Production-ready:
PAYGENT_STORAGE_BACKEND=postgreswithDATABASE_URL
When using Postgres mode, apply migrations from migrations/0001_paygent_mvp.sql through
migrations/0003_paygent_store_state.sql.
Quick migration command:
npm run db:migrate- Do not commit live API keys.
- Keep
ZENDFI_API_KEYandGEMINI_API_KEYin secret storage. - Rotate keys immediately if exposed in logs or chat.