{"id":32478218,"url":"https://github.com/specmatic/specmatic-order-api-grpc-kotlin","last_synced_at":"2026-04-16T11:01:44.455Z","repository":{"id":246556299,"uuid":"820386059","full_name":"specmatic/specmatic-order-api-grpc-kotlin","owner":"specmatic","description":"Specmatic gRPC Sample","archived":false,"fork":false,"pushed_at":"2026-04-14T00:39:32.000Z","size":2309,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-04-14T02:26:06.882Z","etag":null,"topics":["contract-testing","grpc","grpc-server","sample-project","specmatic"],"latest_commit_sha":null,"homepage":"https://specmatic.in","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/specmatic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-06-26T11:13:37.000Z","updated_at":"2026-03-21T00:29:58.000Z","dependencies_parsed_at":"2024-06-28T17:34:39.266Z","dependency_job_id":"0e0150c8-dd80-421e-bfc6-e1cc222bf69a","html_url":"https://github.com/specmatic/specmatic-order-api-grpc-kotlin","commit_stats":null,"previous_names":["znsio/specmatic-order-api-grpc-kotlin","specmatic/specmatic-order-api-grpc-kotlin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/specmatic/specmatic-order-api-grpc-kotlin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specmatic%2Fspecmatic-order-api-grpc-kotlin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specmatic%2Fspecmatic-order-api-grpc-kotlin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specmatic%2Fspecmatic-order-api-grpc-kotlin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specmatic%2Fspecmatic-order-api-grpc-kotlin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/specmatic","download_url":"https://codeload.github.com/specmatic/specmatic-order-api-grpc-kotlin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specmatic%2Fspecmatic-order-api-grpc-kotlin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31882886,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T09:23:21.276Z","status":"ssl_error","status_checked_at":"2026-04-16T09:23:15.028Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["contract-testing","grpc","grpc-server","sample-project","specmatic"],"created_at":"2025-10-26T23:33:46.370Z","updated_at":"2026-04-16T11:01:44.444Z","avatar_url":"https://github.com/specmatic.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Specmatic Order API gRPC Sample\n\nThis sample project demonstrates [Specmatic](https://specmatic.io/) **gRPC support** which allows you to use your **proto files for Contract Testing**.\n[Specmatic](https://specmatic.io/) **gRPC support** can also help you use your proto files for service mocking, #nocode backward compatibility testing and more.\n\nThe **specmatic-order-api-grpc-kotlin** is a gRPC server application developed according to the following proto files, which can be found in the central contract repository:\n\n* [order.proto](https://github.com/specmatic/specmatic-order-contracts/blob/main/io/specmatic/examples/store/grpc/order_api/order.proto)\n* [product.proto](https://github.com/specmatic/specmatic-order-contracts/blob/main/io/specmatic/examples/store/grpc/order_api/product.proto)\n\nThe `ContractTest` class uses our JUnit extension to demonstrate how to use Specmatic to test **specmatic-order-api-grpc-kotlin** gRPC server app using the above proto files.\n\nIf you want to use Docker via TestContainers then you can refer to the `ContractTestUsingTestContainer` class.\n\n## Requirements\n\n* Java 17 or later\n\n## Project Setup\n\n1. Clone the repository\n\n   ```shell\n   git clone https://github.com/specmatic/specmatic-order-api-grpc-kotlin\n   ```\n\n2. Initialize and update the `specmatic-order-contracts` submodule\n\n   ```shell\n   git submodule update --init --recursive --remote\n   ```\n\n3. Enable automatic submodule updating when executing `git pull`\n\n   ```shell\n   git config submodule.recurse true\n   ```\n\n4. Run the generateProto task to generate the classes from the proto files\n\n   ```shell\n   ./gradlew generateProto\n   ```\n\n## Running contract tests\nTo run contract tests,\n   1. Using gradle - `./gradlew clean test`\n   2. Using docker -\n      - Run the application using `./gradlew bootRun`\n      - Run the tests\n        - On Unix and Windows Powershell:\n        ```shell\n        docker run --rm --network host -v \"$(pwd):/usr/src/app\" specmatic/enterprise test\n        ```\n\n        - On Windows CMD Prompt:\n        ```shell\n        docker run --rm --network host -v \"%cd%:/usr/src/app\" specmatic/enterprise test\n           ```\n\n## Running the application\nIn case you want to run just the gRPC server using Gradle you can execute\n\n```shell\n./gradlew bootRun\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspecmatic%2Fspecmatic-order-api-grpc-kotlin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspecmatic%2Fspecmatic-order-api-grpc-kotlin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspecmatic%2Fspecmatic-order-api-grpc-kotlin/lists"}