NovaPay
Independent backend case study
NovaPay is a TypeScript-first monorepo for transfers and bulk payroll execution. Its API uses Prisma with PostgreSQL, Decimal.js for currency math, atomic transactions for debit/credit and ledger writes, SELECT ... FOR UPDATE locking, idempotency keys and BullMQ workers for background payroll jobs.
Project Overview
- Role: Backend Engineer
- Client: Independent backend case study
- Stack: TypeScript, Express, Prisma
The problem we solved
Financial operations must remain correct under retries, duplicate client requests and concurrent debits. Floating-point arithmetic and non-atomic writes would create unacceptable accounting risk.
How we approached it
Used decimal-safe values, single Prisma transactions for money movement and ledger entries, pessimistic row locking for balance checks and idempotency guards for transfer and payroll processing. A Next.js dashboard communicates with the API through route handlers.
Results delivered
Key technical choices
Used Decimal.js and Prisma Decimal instead of floating-point currency arithmetic
Kept money movement and ledger writes inside a single transaction boundary
Used Redis-backed BullMQ workers for bulk payroll execution
Presented as a secondary backend case study without a fabricated live URL or screenshot