{"id":32527154,"url":"https://github.com/specmatic/specmatic-order-graphql-ui-react","last_synced_at":"2026-07-02T18:05:34.778Z","repository":{"id":320014676,"uuid":"827679910","full_name":"specmatic/specmatic-order-graphql-ui-react","owner":"specmatic","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-29T00:58:41.000Z","size":49269,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-06-29T02:20:56.173Z","etag":null,"topics":["sample-project"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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-07-12T06:44:28.000Z","updated_at":"2026-06-29T00:58:29.000Z","dependencies_parsed_at":"2025-10-21T14:15:31.012Z","dependency_job_id":"fd870296-26d5-4ae3-851e-a97f27550e57","html_url":"https://github.com/specmatic/specmatic-order-graphql-ui-react","commit_stats":null,"previous_names":["specmatic/specmatic-order-graphql-ui-react"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/specmatic/specmatic-order-graphql-ui-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specmatic%2Fspecmatic-order-graphql-ui-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specmatic%2Fspecmatic-order-graphql-ui-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specmatic%2Fspecmatic-order-graphql-ui-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specmatic%2Fspecmatic-order-graphql-ui-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/specmatic","download_url":"https://codeload.github.com/specmatic/specmatic-order-graphql-ui-react/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specmatic%2Fspecmatic-order-graphql-ui-react/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35057466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["sample-project"],"created_at":"2025-10-28T10:15:44.564Z","updated_at":"2026-07-02T18:05:34.769Z","avatar_url":"https://github.com/specmatic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Diagram](./GraphQLStubbing.gif)\n\n# Specmatic UI project for GraphQL demo\n\n## Pre-requisites\n\n- Node v20.x and above\n- Docker Desktop\n\nInstall the node packages for this project.\n\n```shell\nnpm install\n```\n\n## Running automated UI Component tests with Specmatic GraphQL Stub\n\n```shell\nnpm test\n```\n\n## Bringing up the React application independently with Specmatic GraphQL Stub\n\n### Start up the Specmatic stub\n\n```shell\nnpm run specmatic:stub\n```\n\n### Testing the Specmatic stub\n\nUse the following curl commands to test if the stub is working as expected -\n\n1. Simple query\n- On Unix terminals:\u003cbr/\u003e\n```shell\ncurl -X POST http://localhost:8080/graphql \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"query\": \"query { findAvailableProducts(type: gadget, pageSize: 10) { id name inventory type } }\"\n  }'\n```\n\n- On Windows Powershell:\u003cbr/\u003e\n```shell\ncurl -X POST http://localhost:8080/graphql `\n  -H \"Content-Type: application/json\" `\n  -d '{\n    \"query\": \"query { findAvailableProducts(type: gadget, pageSize: 10) { id name inventory type } }\"\n  }'\n```\n\n- On Windows Command Prompt:\n```shell\ncurl -X POST http://localhost:8080/graphql ^\n  -H \"Content-Type: application/json\" ^\n  -d \"{\\\"query\\\": \\\"query { findAvailableProducts(type: gadget, pageSize: 10) { id name inventory type } }\\\"}\"\n```\n\n1. Query with variables\n- On Unix terminals:\u003cbr/\u003e\n```shell\ncurl -X POST http://localhost:8080/graphql \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"query\": \"query FindAvailableProducts($type: ProductType!, $pageSize: Int!) { findAvailableProducts(type: $type, pageSize: $pageSize) { id name inventory type } }\",\n    \"variables\": {\n      \"type\": \"gadget\",\n      \"pageSize\": 10\n    }\n  }'\n```\n\n- On Windows Powershell:\u003cbr/\u003e\n```shell\ncurl -X POST http://localhost:8080/graphql `\n  -H \"Content-Type: application/json\" `\n  -d '{\n    \"query\": \"query FindAvailableProducts($type: ProductType!, $pageSize: Int!) { findAvailableProducts(type: $type, pageSize: $pageSize) { id name inventory type } }\",\n    \"variables\": {\n      \"type\": \"gadget\",\n      \"pageSize\": 10\n    }\n  }'\n```\n\n- On Windows Command Prompt:\u003cbr/\u003e\n```shell\ncurl -X POST http://localhost:8080/graphql ^\n  -H \"Content-Type: application/json\" ^\n  -d \"{\\\"query\\\": \\\"query FindAvailableProducts($type: ProductType!, $pageSize: Int!) { findAvailableProducts(type: $type, pageSize: $pageSize) { id name inventory type } }\\\", \\\"variables\\\": {\\\"type\\\": \\\"gadget\\\", \\\"pageSize\\\": 10}}\"\n```\n\n### Start the application\n\n```shell\nnpm start\n```\n\nThis should automatically start the application and pull it up in your browser.\n\n### Explore the GraphQl spec using GraphiQL\n\nYou can now open [GraphiQL](http://localhost:8080/_specmatic/graphiql) in your browser and test out some GraphQL queries.\nThis instance of GraphiQL is served by Specmatic Enterprise's mock instance running on http://localhost:8080\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspecmatic%2Fspecmatic-order-graphql-ui-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspecmatic%2Fspecmatic-order-graphql-ui-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspecmatic%2Fspecmatic-order-graphql-ui-react/lists"}