Skip to content

An example serverless event-driven architecture using Hookdeck as and event gateway for cross-service communication

Notifications You must be signed in to change notification settings

hookdeck/ecommerce-serverless-eda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-Commerce Serverless EDA

This is an example monorepo demonstrating building a serverless e-commerce event-driven architecture.

Web Store home page

Apps and Packages

The example includes the following packages/apps:

  • web-store: a Next.js e-commerce example application
  • inventory: 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 (includes eslint-config-next and eslint-config-prettier)
  • @repo/typescript-config: tsconfig.jsons used throughout the monorepo

Each package/app is 100% TypeScript.

Hosted service dependencies

The application relies on the following hosted services:

  • Hookdeck as an event gateway for inter-service communication
  • Xata for data persistence
  • Vercel for deployment

Build

To build all apps and packages, run the following command:

cd serverless-eda-vercel
npm build

Develop

To develop all apps and packages, run the following command:

cd serverless-eda-vercel
npm dev

Useful Links

Learn more about Turborepo: