This is an example monorepo demonstrating building a serverless e-commerce event-driven architecture.
The example includes the following packages/apps:
web-store: a Next.js e-commerce example applicationinventory: a Next.js application exposing services for inventory management API routes@repo/types: shared type definitions across services in the EDA@repo/eslint-config:eslintconfigurations (includeseslint-config-nextandeslint-config-prettier)@repo/typescript-config:tsconfig.jsons used throughout the monorepo
Each package/app is 100% TypeScript.
The application relies on the following hosted services:
- Hookdeck as an event gateway for inter-service communication
- Xata for data persistence
- Vercel for deployment
To build all apps and packages, run the following command:
cd serverless-eda-vercel
npm build
To develop all apps and packages, run the following command:
cd serverless-eda-vercel
npm dev
Learn more about Turborepo:
