{"id":21289748,"url":"https://github.com/wzulfikar/mbwatch","last_synced_at":"2026-05-18T18:40:30.250Z","repository":{"id":82238613,"uuid":"165143226","full_name":"wzulfikar/mbwatch","owner":"wzulfikar","description":"dockerized mountebank with auto-reload","archived":false,"fork":false,"pushed_at":"2019-01-17T08:46:18.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-08T17:43:25.632Z","etag":null,"topics":["docker","e2e-test","mock-server","mountebank"],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/wzulfikar.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}},"created_at":"2019-01-10T22:55:34.000Z","updated_at":"2019-01-17T08:46:20.000Z","dependencies_parsed_at":"2023-03-09T19:01:04.918Z","dependency_job_id":null,"html_url":"https://github.com/wzulfikar/mbwatch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wzulfikar%2Fmbwatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wzulfikar%2Fmbwatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wzulfikar%2Fmbwatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wzulfikar%2Fmbwatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wzulfikar","download_url":"https://codeload.github.com/wzulfikar/mbwatch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243754092,"owners_count":20342542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","e2e-test","mock-server","mountebank"],"created_at":"2024-11-21T12:42:57.621Z","updated_at":"2025-12-30T18:11:59.548Z","avatar_url":"https://github.com/wzulfikar.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mbwatch\n***dockerized mountebank with auto-reload***\n\n[WIP]\n\nmountebank documentation: http://www.mbtest.org\n\nUsing `example/` to run mountebank with auto-reload enabled:\n\nusing npm script, this is what you may do:\n\n```\n{\n\t\"name\": \"catapult-vue\",\n\t\"version\": \"0.1.0\",\n\t\"scripts\": {\n\t\t\"mock\": \"node_modules/.bin/mb --port 8880 --configfile mountebank/imposter.ejs --logfile mountebank/mb.log\",\n\t\t\"mock:watch\":\"nodemon --watch mountebank --ext js,ejs --exec \\\"npm run mock\\\"\",\n\t\t\"mock:stop\": \"node_modules/.bin/mb stop\"\n\t},\n\t[...redacted...]\n}\n```\n\n```\n$ cd example\n$ docker run -it --rm -p 8001:8001 -p 8002:8002 -v $(pwd)/mountebank:/mountebank wzulfikar/mbwatch --configfile mountebank/imposter.ejs --logfile mountebank/mb.log --allowInjection\n```\n\nThe `example/` directory contains 2 mountebank mocks, simulating 2 different services. Each running on port 8001 and 8002 respectively.\n\nRun curl from new terminal to check if the services are accessible:\n\n```\n$ curl localhost:8001/ping\n$ curl localhost:8002/ping\n```\n\n- mountebank injection include use path relative to root directory of mountebank files. example:\n```\n\"responses\": [\n  {\n    \"inject\": \"\u003c%- stringify(filename, 'samurai-backend/inject-response/test.js') %\u003e\"\n  }\n]\n```\nsamurai-backend/inject-response/test.js is actually at ~/code/github/mbwatch/example/mountebank/samurai-backend/inject-response/test.js","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwzulfikar%2Fmbwatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwzulfikar%2Fmbwatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwzulfikar%2Fmbwatch/lists"}