A collection of portable Vendure configurations and examples that can be copied to any Vendure project.
# Install dependencies
npm install
# Create a new example
npm run create-example my-feature
# Build the example
npm run build --workspace=my-feature
# Run the example (optional)
npm run dev:server --workspace=my-featureThe store/ directory contains a standard Vendure installation created with npx @vendure/create. This serves as the base configuration that all examples inherit from.
Examples are self-contained Vendure projects in the examples/ directory. Each example:
- Contains a complete, portable
vendure-config.ts - Includes all necessary dependencies
- Can be copied to any Vendure project
Every example's vendure-config.ts is fully portable:
# Copy any example config to your project
cp examples/my-feature/src/vendure-config.ts my-vendure-project/src/
# Copy custom plugins too (if any)
cp -r examples/my-feature/src/plugins my-vendure-project/src/| Command | Description |
|---|---|
npm run create-example <name> |
Create a new example |
npm run list:examples |
List all examples |
npm run dev:server --workspace=<name> |
Run example in development |
npm run build --workspace=<name> |
Build example |
When you create an example, you get:
examples/my-feature/
├── src/
│ ├── vendure-config.ts # ← Main config (copy this to your project)
│ ├── plugins/ # ← Custom plugins (if any)
│ ├── index.ts # Server entry point
│ └── index-worker.ts # Worker entry point
├── package.json # Complete dependencies
└── README.md # Usage instructions
- Create:
npm run create-example payment-gateway - Develop: Edit
examples/payment-gateway/src/vendure-config.ts - Test: Build and run the example
- Share: Copy the config to any Vendure project