Skip to main content

Sample Projects

Specmatic in Action: Sample Projects

Specmatic unlocks a new way to approach microservices by aligning contracts and code, making your systems reliable and resilient. Our sample projects showcase real-world implementations across various technologies and communication protocols. This is your playground to experience Specmatic.

Sample Application Architecture

Each sample project is designed around a familiar microservices setup, giving you the clarity and confidence to integrate Specmatic seamlessly into your stack.
The architecture consists of three core components:

  1. Backend Service – The system's engine, processing and providing data.
  2. BFF (Backend For Frontend) – A mediator between the frontend and backend services.
  3. Frontend Application – Where the user interacts.

Let's discover how Specmatic works across different layers of an app, with help of following sample projects.

Sample Projects

OpenAPI Architecture

Projects

LayerLanguageFrameworkSample Project
BackendKotlinSpring Bootspecmatic-order-api-java
BackendNodeJSExpressspecmatic-order-api-nodejs
BackendPythonFlaskspecmatic-order-api-python
BackendC#.NETspecmatic-order-api-csharp
Back-end for Front-end (BFF)KotlinSpring Bootspecmatic-order-bff-java
Back-end for Front-end (BFF)NodeJSExpressspecmatic-order-bff-nodejs
Back-end for Front-end (BFF)PythonFlaskspecmatic-order-bff-python
Back-end for Front-end (BFF)PythonFastAPIspecmatic-redis-python-sample
Back-end for Front-end (BFF)PythonSanicspecmatic-order-bff-python-sanic
Back-end for Front-end (BFF)GoLangGinspecmatic-order-bff-go
Back-end for Front-end (BFF)C#.NETspecmatic-order-bff-csharp
FrontendJSReactspecmatic-order-ui-react

Security Schemes

OAuth Architecture

SecurityLanguageFrameworkSample Project
OAuthKotlinSpring Bootspecmatic-order-api-java-with-oaut

Other Projects

NameLanguageSample Project
specmatic-hooks-java-sampleKotlinspecmatic-hooks-java-sample

Converting existing mocks to Specmatic

Convert fromSample Project
Wiremockwiremock-to-specmatic

Bringing It All Together

By exploring these projects, you'll gain hands-on experience in integrating Specmatic with a variety of technologies, giving you the power to build smarter and more resilient systems.

Need Help?

Contributing

We welcome contributions! If you've built something interesting with Specmatic:

  • Submit a pull request to add your example
  • Share your implementation of these samples in different frameworks
  • Help us improve documentation and examples

Ready to transform how you build and test microservices? Pick a sample project and start your Specmatic journey today!