Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
This is a full-stack ecommerce store template with customer storefront, admin dashboard, and Cloudflare Workers API.
Sign in to like and favorite skills
This is a full-stack ecommerce store template with customer storefront, admin dashboard, and Cloudflare Workers API.
base-store/ ├── storefront-app/ # Customer-facing storefront (Express + Liquid) │ ├── server.js # Express server with LiquidJS │ ├── theme/ │ │ ├── layouts/ # Base layouts (theme.liquid) │ │ ├── templates/ # Page templates (index, product, cart, etc.) │ │ ├── snippets/ # Reusable components (header, footer, product-card) │ │ ├── assets/ # CSS, JS (styles.css → compiled → index.css) │ │ └── config/ # Liquid filters │ ├── tailwind.config.js # Tailwind configuration │ └── package.json # Storefront dependencies ├── admin-app/ # Admin dashboard (Express + Liquid) │ ├── server.js │ ├── theme/ │ └── package.json ├── api-worker/ # Cloudflare Workers API (Hono) │ ├── src/ │ │ ├── index.ts # API entry point │ │ ├── middleware/ # Auth, store resolver │ │ ├── routes/ # API routes │ │ └── types.ts │ └── wrangler.toml ├── infra/ │ └── db/ │ ├── schema.sql # D1 database schema │ └── seed.sql # Sample data └── package.json # Root orchestration scripts
Server-side rendered storefront using Express and Liquid templates.
storefront-app/server.js - Express server with Liquid configstorefront-app/theme/templates/index.liquid - Homepagestorefront-app/theme/templates/collection.liquid - Products pagestorefront-app/theme/templates/product.liquid - Product detailstorefront-app/theme/templates/cart.liquid - Shopping cartstorefront-app/theme/snippets/header.liquid - Navigation headerstorefront-app/theme/snippets/product-card.liquid - Product cardstorefront-app/theme/assets/styles.css - Source CSS (Tailwind)storefront-app/theme/assets/index.css - Compiled CSS (auto-generated)storefront-app/theme/assets/cart.js - Cart functionalityThe storefront uses Tailwind CSS with a build step:
theme/assets/styles.css - Edit this file, supports @tailwind, @applytheme/assets/index.css - Auto-compiled, DO NOT editnpm run build:css compiles styles.css → index.cssServer-side rendered admin dashboard using Express and Liquid.
admin-app/server.js - Express serveradmin-app/theme/templates/ - Admin page templatesadmin-app/theme/snippets/ - Admin componentsCloudflare Workers API built with Hono.
api-worker/src/index.ts - Hono app entryapi-worker/src/routes/store.ts - Public store routesapi-worker/src/routes/admin.ts - Admin routesapi-worker/src/middleware/auth.ts - Auth middleware# Install dependencies (also builds CSS) npm install # Start ALL services (storefront, admin, API) concurrently npm run dev # Or start services individually: npm run dev:storefront # Storefront on port 3000 npm run dev:admin # Admin dashboard on port 3001 npm run dev:api # API worker on port 8787 # Initialize database npm run db:init npm run db:seed
PORT - Server portAPI_URL - API base URL (default: http://localhost:8787)STORE_SLUG - Store identifier (default: demo-store)Located in
infra/db/schema.sql:
stores - Store configurationproducts - Product catalogorders - Customer ordersorder_items - Order line itemspayments - Payment recordsThe following files should not be modified: