Inventory Worker is a research-driven project aimed at creating a modular, loosely coupled application deployable on Cloudflare Workers and Cloudflare Pages. The project serves as a reusable template for future applications and explores the use of Google Protobuf for efficient HTTP contract management.
If you already have VS Code and Docker installed, you can click the badge above or here to get started.
Clicking these links will cause VS Code to automatically install the Dev Containers extension if needed, clone the source code into a container volume, and spin up a dev container for use.
Setup Steps:
-
Clone the repository
-
Install dependencies:
npm install -
Build the project:
npx turbo build -
Run the development server:
npm run dev -w web
/web— Web application./worker— Cloudflare Workers application.
/catalog— Catalog bounded-context./client— State store./http/service— HTTP service./contracts— HTTP contracts./client— HTTP client.
/service— Business logic./database— Database.
/inventory— Inventory bounded-context./client— State store (not implemented)./http/service— HTTP service./contracts— HTTP contracts./client— HTTP client (not implemented).
/service— Business logic./database— Database.
/common— Common modules./logger— Logger service./services— Services factory./http-services— HTTP-related services factory.