### Install DashCommerce Core Package Source: https://dashcommerce.dev/docs/getting-started Add the DashCommerce core package to an existing EmDash project. Ensure you use the same package manager as your main EmDash installation. ```bash bun add @dashcommerce/core ``` -------------------------------- ### Register DashCommerce Plugin in Astro Config Source: https://dashcommerce.dev/docs/getting-started Integrate DashCommerce into your EmDash project by adding it to the plugins array in your astro.config.ts file. Adjust database and storage configurations as needed for your setup. ```typescript import { defineConfig } from "astro/config"; import emdash from "emdash/astro"; import { sqlite } from "emdash/db"; import { local } from "emdash/storage/local"; import { dashcommerce } from "@dashcommerce/core"; export default defineConfig({ integrations: [ emdash({ database: sqlite({ url: "file:./data.db" }), storage: local({ directory: "./uploads", baseUrl: "/_emdash/api/media/file", }), plugins: [dashcommerce()], }), ], }); ``` -------------------------------- ### Scaffold New DashCommerce Project Source: https://dashcommerce.dev/docs/getting-started Use this command to quickly set up a new DashCommerce storefront with demo products, checkout, blog, and admin. It utilizes the @dashcommerce/starter template and works with various package managers. ```bash npm create @dashcommerce@latest cd your-shop bun run bootstrap # emdash init + merge-seed + seed bun run dev # Astro at :4321 ``` -------------------------------- ### Seed DashCommerce Data and Run EmDash Source: https://dashcommerce.dev/docs/getting-started Merge DashCommerce collections into your seed.json and then run the EmDash seed command to populate your database. Access the admin panel at /_emdash/admin to configure DashCommerce settings. ```bash bunx dashcommerce-merge-seed bun emdash seed ``` -------------------------------- ### Forward Stripe Events Locally Source: https://dashcommerce.dev/docs/stripe Use the Stripe CLI to forward events to your local development server. Ensure your local server is running and accessible. ```bash stripe listen --forward-to localhost:4321/api/stripe/webhook ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.