Who it is forAn Algerian merchant or developer who wants to sell cash on delivery without paying per-transaction fees or running a VPS.
The problemWestern and local platforms charge per-transaction fees, need VPS hosting and lock store data in their systems.
The outcomeA local CodFlow store with a storefront, merchant dashboard and backend that you own, ready to move to production.
What you need first
- 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)
Steps
- Run
git clone https://github.com/bighadj22/codflow.gitandcd codflow, then runnpm ci. - Run
wrangler login, then create resources withwrangler d1 create my-codflow-db,wrangler r2 bucket create my-codflow-images,wrangler kv namespace create RATE_LIMITandwrangler 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[email protected] ADMIN_NAME=Admin npm run seed:adminand save the generated password and API key. - Start the backend with
npm run devin cod-server, the dashboard withnpm run devin cod-client-astro, and the storefront withnpm run devin cod-astro/theme01 on a different port.
Prompt for your agent
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.
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.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for bighadj22/codflow and "Launch a COD store on your own Cloudflare account"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer