hookdeck / ecommerce-serverless-eda

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

About

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


Languages

Language:TypeScript 68.0%Language:CSS 23.1%Language:JavaScript 8.9%