Initialize a multi-service DAPR project with shared configuration
Creates a complete multi-service DAPR project with shared configuration and infrastructure.
/plugin marketplace add Sahib-Sawhney-WH/dapr-claude-plugin/plugin install sahib-sawhney-wh-dapr-plugins-dapr@Sahib-Sawhney-WH/dapr-claude-pluginInitialize a complete multi-service DAPR project with shared components and configuration.
When the user runs /dapr:project:
Create Project Structure
Generate Shared Configuration
dapr.yaml for multi-app modeCreate Service Templates
| Argument | Description |
|---|---|
<name> | Project name (required) |
--services | Comma-separated service names |
--template | Project template (ecommerce, iot, saga) |
/dapr:project my-app --services "order-service,inventory-service,payment-service"
/dapr:project shop --template ecommerce
/dapr:project iot-hub --template iot
my-app/
├── dapr.yaml # Multi-app run configuration
├── components/ # Shared DAPR components
│ ├── statestore.yaml
│ ├── pubsub.yaml
│ ├── secretstore.yaml
│ └── resiliency.yaml
├── services/
│ ├── order-service/
│ │ ├── src/
│ │ │ └── main.py
│ │ ├── Dockerfile
│ │ ├── requirements.txt
│ │ └── components/ # Service-specific components
│ ├── inventory-service/
│ │ └── ...
│ └── payment-service/
│ └── ...
├── infrastructure/
│ ├── docker-compose.yaml # Local development
│ ├── bicep/ # Azure IaC
│ │ └── main.bicep
│ └── kubernetes/ # K8s manifests
│ └── deployment.yaml
├── tests/
│ ├── e2e/
│ └── integration/
└── README.md
version: 1
apps:
- appId: order-service
appDirPath: ./services/order-service
appPort: 8001
command: ["python", "-m", "uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8001"]
- appId: inventory-service
appDirPath: ./services/inventory-service
appPort: 8002
command: ["python", "-m", "uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8002"]
- appId: payment-service
appDirPath: ./services/payment-service
appPort: 8003
command: ["python", "-m", "uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8003"]
common:
resourcesPath: ./components
# Run all services locally
dapr run -f dapr.yaml
# Run with Docker Compose
docker-compose up
# Deploy to Azure
/dapr:deploy aca
api-gateway - BFF pattern gatewayorder-service - Order management with workflowsinventory-service - Stock management with actorspayment-service - Payment processing with saganotification-service - Event-driven notificationsdevice-gateway - Device ingestiondevice-actor - Per-device stateanalytics-service - Stream processingalerting-service - Threshold alertsorchestrator - Saga coordinatorservice-a - Participant Aservice-b - Participant Bservice-c - Participant C