Build a Todo App
This tutorial guides you through building a complete Todo application using MBC CQRS Serverless. You'll learn CQRS patterns, event handling, and progressive feature additions.
This tutorial follows the sample code which is organized into progressive steps.
What You'll Build
A fully functional Todo application with:
- CRUD operations for todos
- CQRS pattern with Command/Query separation
- Event-driven data synchronization to RDS
- Optional: Sequence numbers for todos
- Optional: Async task processing
Prerequisites
- Completed the Quickstart Tutorial
- Basic understanding of NestJS
- Docker running for local development
Running the Samples
Each step has a complete working sample. To run any sample:
# Navigate to the step directory
cd step-02-create # or any other step
# Install dependencies
npm install
# Terminal 1: Start Docker services
npm run offline:docker
# Terminal 2: Run database migrations
npm run migrate
# Terminal 3: Start the serverless offline server
npm run offline:sls