Example Projects
Practical example projects demonstrating the complete workflow from specification to code.
Each example should identify the skills taught, setup commands, expected behavior, quality checks, and extension ideas. Treat examples as learning harnesses, not just code samples.
E-commerce MVP Project
Based on the e-commerce scenario from OpenSpec-practise, we provide two implementations:
Project Overview
A simple e-commerce system including:
- Product management (query, create)
- Shopping cart (add, remove, query)
- Order (create, query)
Multi-language Implementations
| Language | Framework | Directory |
|---|---|---|
| Node.js | Express | examples/ecommerce-nodejs/ |
| Python | FastAPI | examples/ecommerce-python/ |
Spec-Driven
Both implementations share the same OpenSpec specification:
openspec/
└── changes/
└── v1-mvp/Each implementation includes:
- Complete proposal.md
- Technical design
- Detailed specs
- Implementation tasks
Using These Examples
- Understand the workflow: Read through the specification files to understand how requirements translate to code
- Compare implementations: See how the same spec can be implemented in different languages
- Learn by doing: Create your own implementation following the same pattern
Project Structure
examples/
├── ecommerce-nodejs/
│ ├── openspec/
│ │ └── changes/v1-mvp/
│ ├── src/
│ └── package.json
│
└── ecommerce-python/
├── openspec/
│ └── changes/v1-mvp/
├── src/
└── pyproject.tomlNext Steps
- Explore the Node.js implementation: E-commerce MVP (Node.js)
- Explore the Python implementation: E-commerce MVP (Python)
- Learn OpenSpec: OpenSpec Tutorial
Example acceptance criteria
Every example project should state:
- Which capabilities it teaches.
- How to install, run, and test it.
- What successful behavior looks like.
- Which logs or settings to inspect first when it fails.
- Which extension exercises come next.
Extension exercises
- Add an OpenSpec change for product search.
- Add integration tests for the new endpoint.
- Design an Evaluator for AI-generated product descriptions.
- Expose product lookup as an MCP tool.
- Define release gates in Evaluation and Quality.