Mongez
Delivery & e-commerce backend MVP
A serverless backend built with Node.js, TypeScript and Firebase Cloud Functions, structured as a strict Controller-Service-Repository layered architecture.
- 8 core database domains with 100% type safety across the codebase
- Custom state machine for 6 order phases, with Firestore Transactions for wallet settlements and dynamic commission calculations
- Hybrid Haversine algorithm plus Google Maps APIs cut external API calls by an estimated 70%, and a 10-second polling mechanism cut Firestore read/write billing by over 80%
- RBAC for 3 roles (Admin, Driver, Customer) via Firebase Custom Claims, with every API payload validated by Zod