Specmatic in Action: Sample Projects

Overview

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:

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

Getting Started

  1. Choose a sample project that matches your tech stack
  2. Clone the repository and follow the README instructions
  3. Explore the contract tests and implementation details
  4. Run the examples locally to see Specmatic in action

Learning Path

  • Start with the OpenAPI examples if you’re new to Specmatic
  • Progress to more complex implementations like OAuth or event-driven patterns
  • Experiment with different language implementations of the same architecture

Let’s dive deeper!


In-Depth Implementations

OpenAPI

OpenAPI Architecture

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


Authentication and Authorization

OAuth Architecture

Take control of secure user access with our OAuth samples, integrating authentication into your apps.


gRPC

gRPC architecture

Supercharge your microservices with gRPC. Get started with these samples and see how Specmatic fits in.


GraphQL

GraphQL Architecture

GraphQL opens a world of flexible queries—explore how Specmatic bridges contracts and GraphQL endpoints.


Kafka

Kafka Architecture

Kafka brings event-driven architecture to life. Discover Specmatic’s power in managing Kafka interactions.


Google PubSub

Google PubSub Architecture

Jump into event-driven architectures with Google PubSub, powered by Specmatic.


JMS

JMS Architecture

Embrace the power of Java Messaging Service (JMS) with this Specmatic-integrated sample.


JDBC

JDBC Architecture

Unlock data from databases using JDBC, and see how Specmatic supports seamless contract testing.


Redis

Redis Architecture

Boost your app’s performance with Redis caching, fully integrated with Specmatic.

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. Ready to level up? Jump in and start experimenting!


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!