Quickstart Tutorial
This tutorial will guide you through creating your first MBC CQRS Serverless application. By the end, you'll have a working API running locally.
Prerequisites
Before you begin, ensure you have the following installed:
- Node.js 18.x or later
- Docker and Docker Compose
- AWS CLI (configured with credentials)
- Git
Step 1: Create a New Project
Use the MBC CQRS CLI to scaffold a new project:
npx @mbc-cqrs-serverless/cli new my-app
cd my-app
The CLI will create a project with the following structure:
my-app/
├── src/
│ ├── main.ts
│ ├── main.module.ts
│ └── ...
├── infra-local/
│ ├── docker-compose.yml
│ └── serverless.yml
├── prisma/
│ └── schema.prisma
├── package.json
└── ...
Step 2: Install Dependencies
npm install