{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "bighadj22-codflow--self-host-cod-store-on-cloudflare",
 "repo": "bighadj22/codflow",
 "repo_url": "https://github.com/bighadj22/codflow",
 "repo_slug": "bighadj22-codflow",
 "title": "Launch a COD store on your own Cloudflare account",
 "page_title": "How to launch a COD store on your own Cloudflare account with Codflow",
 "summary": "Deploy the storefront, merchant dashboard and backend to your Cloudflare account with no per-order fees.",
 "who": "An Algerian merchant or developer who wants to sell cash on delivery without paying per-transaction fees or running a VPS.",
 "problem": "Western and local platforms charge per-transaction fees, need VPS hosting and lock store data in their systems.",
 "outcome": "A local CodFlow store with a storefront, merchant dashboard and backend that you own, ready to move to production.",
 "steps": [
  "Run `git clone https://github.com/bighadj22/codflow.git` and `cd codflow`, then run `npm ci`.",
  "Run `wrangler login`, then create resources with `wrangler d1 create my-codflow-db`, `wrangler r2 bucket create my-codflow-images`, `wrangler kv namespace create RATE_LIMIT` and `wrangler kv namespace create OAUTH_KV`.",
  "Copy the example env and config files in the root, cod-server, cod-client-astro and cod-astro/theme01 folders, then set your resource names and secrets.",
  "In cod-server run `npm run db:setup:local`, then in cod-client-astro run `ADMIN_EMAIL=admin@example.com ADMIN_NAME=Admin npm run seed:admin` and save the generated password and API key.",
  "Start the backend with `npm run dev` in cod-server, the dashboard with `npm run dev` in cod-client-astro, and the storefront with `npm run dev` in cod-astro/theme01 on a different port."
 ],
 "agent_prompt": "In the repo https://github.com/bighadj22/codflow, follow the codflow-setup runbook at .agents/skills/codflow-setup/SKILL.md to set up a local store in <target folder>. Expected output: the backend, dashboard and storefront running locally, with the admin password and API key reported. Verify that the backend responds at http://localhost:8787.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "2 hours",
 "basis": "readme",
 "caveat": "The README says a production deployment needs cod-server on a custom domain, because Worker-to-Worker fetch between workers.dev hosts is blocked.",
 "category": "Sales and marketing",
 "tags": [
  "Sales and marketing"
 ],
 "lang": "typescript",
 "requirements": [
  "Node.js 22.12+ and npm",
  "Wrangler CLI (npm install -g wrangler)",
  "A free Cloudflare account",
  "Carrier and Meta credentials if you connect delivery or ads (optional)"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/bighadj22-codflow/self-host-cod-store-on-cloudflare/",
 "md": "https://dedupedai.com/use-cases/bighadj22-codflow/self-host-cod-store-on-cloudflare/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/bighadj22-codflow--self-host-cod-store-on-cloudflare.json",
 "api_version": "v1"
}
