Pongo is a Node.js library that provides a MongoDB-like API backed by PostgreSQL. This post demonstrates how to bootstrap a CRUD application using Pongo's command handling pattern, which unifies create, update, and delete operations into a single flow. Using a shopping cart example in TypeScript, it shows how business logic functions receive current state and return new state (or null for deletion), with Pongo automatically handling the appropriate database operation. The post also argues that CRUD paired with CQRS is a valid starting point for proof-of-concepts, allowing clean evolution as business requirements grow.
1 Impression