Skip to content

About

Point of Sale application for Aiwa Media Group

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Storefront

A standalone retail POS SaaS powered by Cloudflare Workers, D1 and R2, with optional WooCommerce integration.

Staging release: The live API supports authenticated merchants, local cash-attested transactions, inventory and ledger operations. Demo mode is separate and illustrative. Production merchant use remains NO-GO until the protected migration, backup, exact-release and operational acceptance gates pass.

Stack

  • React 19, Vite, TypeScript, Tailwind CSS 4 and shadcn-compatible design tokens
  • Hono API running on Cloudflare Workers
  • D1 SQLite and Drizzle ORM, R2 reserved for media
  • pnpm workspaces; shared domain and API contracts
  • Local development with Vite proxy to Wrangler

Quick start

  1. Install Node 24 and Corepack, then run `corepack enable`.
  2. Run `pnpm install`.
  3. In one terminal: `pnpm dev:api`.
  4. In another terminal: `pnpm db:local` once, then `pnpm dev:web`.
  5. Open http://localhost:5173. Health endpoint: http://localhost:5173/api/health.

Local D1 is provisioned automatically by Wrangler. For remote deployment, create a real D1 database, replace the placeholder database_id in `apps/api/wrangler.jsonc`, follow the protected schema change and deployment workflows in docs/operations/staging-l3-acceptance.md; never bypass the migration gate.

See `docs/architecture.md` for safety boundaries, `docs/parallel-delivery.md` for PR ownership, `docs/deployment.md` for deployment instructions, and `docs/operations/staging-readiness.md` for staging migration approval and monitored acceptance.

Scripts

  • `pnpm dev:api` — Wrangler local API on port 8787
  • `pnpm dev:web` — Vite SPA on port 5173, proxy /api to Wrangler
  • `pnpm db:local` — apply migrations to local D1
  • `pnpm build` — production SPA build plus Worker TypeScript checks
  • `pnpm typecheck` — typecheck the monorepo
  • `pnpm test` — run domain unit tests

The deploy command intentionally requires human-managed Cloudflare account setup. No credentials or database IDs are stored in this repository.

About

Point of Sale application for Aiwa Media Group

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages