- Role
- Lead developer
- Authorship
- 331 of 406 commits · monorepo
- Surfaces
- 5 apps, 1 API
Olipay Commercial · private source
B2B + B2C commerce platform for beverage distribution
One catalogue serving walk-in consumers and business accounts buying on credit — plus the warehouse, the storefront and the counter behind them.
Five deployable surfaces run on a single NestJS API: a React Native app, a React PWA for iPhone users, an admin backoffice, an in-store point of sale, and the landing page. All five import the same contract package, so a changed response type breaks the build in whichever app is now wrong.
What I built
The Woovi (Pix) payment integration, including webhook signature verification against the published key format and support for multiple receiving accounts. The point of sale, added as a new surface to the monorepo. The whole warehouse model — storage centres, deposit selection at checkout, product packagings, and cost incidents that separate tax from replacement cost. A promotional flyer generator that composes an encarte in-app and exports it to image and PDF. The metrics and trend endpoints behind the dashboard, B2B credit validation, and the loyalty points programme.
How it holds together
Services depend on repository interfaces bound by DI tokens rather than on Prisma, so unit tests mock the interface and integration tests run against a real database. Four route guards, two-factor auth, a global exception filter, structured logging with request tracing, and custom CPF/CNPJ validators. Tested at four levels, up to Maestro end-to-end runs on a device.
- NestJS 11
- Prisma 7
- PostgreSQL
- React Native · Expo 52
- React 19 · Vite
- Turborepo
- Pino
- Maestro