{"id":18745299,"url":"https://github.com/kwishna/pact-contract-testing-nodejs","last_synced_at":"2026-04-13T18:02:28.782Z","repository":{"id":245736802,"uuid":"818794820","full_name":"kwishna/pact-contract-testing-nodejs","owner":"kwishna","description":"API contract testing using Pact","archived":false,"fork":false,"pushed_at":"2024-07-16T15:25:23.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-20T07:32:06.291Z","etag":null,"topics":["api-testing","contract-testing","expressjs","pact","rest-api","webservices"],"latest_commit_sha":null,"homepage":"","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/kwishna.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}},"created_at":"2024-06-22T22:21:15.000Z","updated_at":"2024-07-19T20:54:23.000Z","dependencies_parsed_at":"2025-05-20T20:47:03.643Z","dependency_job_id":null,"html_url":"https://github.com/kwishna/pact-contract-testing-nodejs","commit_stats":null,"previous_names":["kwishna/pact-contract-testing-nodejs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kwishna/pact-contract-testing-nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwishna%2Fpact-contract-testing-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwishna%2Fpact-contract-testing-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwishna%2Fpact-contract-testing-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwishna%2Fpact-contract-testing-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kwishna","download_url":"https://codeload.github.com/kwishna/pact-contract-testing-nodejs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwishna%2Fpact-contract-testing-nodejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31764317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: 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":["api-testing","contract-testing","expressjs","pact","rest-api","webservices"],"created_at":"2024-11-07T16:17:33.504Z","updated_at":"2026-04-13T18:02:28.767Z","avatar_url":"https://github.com/kwishna.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Command line explaination :-\n\n```bash\n    npm install\n```\n\nThis command starts the Pact Broker in a Docker container, accessible at http://localhost:9292.\n```bash\n    docker-compose up -d\n```\n\n```plaintext\n    ecommerce/\n    ├── product-service/\n    │   ├── productService.js\n    │   ├── products.json\n    │   └── test/\n    │       └── providerPactTest.js\n    ├── order-service/\n    │   ├── orderService.js\n    │   ├── consumerClient.js\n    │   ├── orders.json\n    │   └── test/\n    │       └── consumerPactTest.js\n    └── pacts/\n```\n\nThis command starts the order service on port 8080.\n```bash\n    node order-service/orderService.js\n```\n\nThis command starts the product service on port 8081.\n```bash\n    node product-service/productService.js\n```\n\nThis command runs the consumer tests, generating Pact files based on the interactions.\n```bash\n    mocha order-service/test/consumerPactTest.js\n```\n\nThis command publishes the generated Pact files to the Pact Broker. [If using broker server]\n```bash\n    node publishPacts.js\n```\n\nThis command fetches the Pact files from the Pact Broker and verifies them against the running Product Service.\n```bash\n    mocha product-service/test/providerPactTest.js\n```\n\n```json\n\"scripts\": {\n  \"start-product\": \"node product-service/productService.js\",\n  \"start-order\": \"node order-service/orderService.js\",\n  \"test-consumer\": \"mocha order-service/test/consumerPactTest.js\",\n  \"test-provider\": \"mocha product-service/test/providerPactTest.js\",\n  \"publish-pacts\": \"node publishPacts.js\"\n}\n```\n\n```bash\n    npm run start-product        # Start the Product Service\n    npm run start-order          # Start the Order Service\n    npm run test-consumer        # Run Consumer Pact Tests\n    npm run publish-pacts        # [Optional] Publish Pacts to Broker only if Broker server is running\n    npm run test-provider        # Run Provider Verification Tests\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwishna%2Fpact-contract-testing-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkwishna%2Fpact-contract-testing-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwishna%2Fpact-contract-testing-nodejs/lists"}