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
:eslint
configurations (includeseslint-config-next
andeslint-config-prettier
)@repo/typescript-config
:tsconfig.json
s 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: