{"id":13471582,"url":"https://github.com/dreamhead/moco","last_synced_at":"2025-05-13T23:08:21.691Z","repository":{"id":5111802,"uuid":"6275822","full_name":"dreamhead/moco","owner":"dreamhead","description":"Easy Setup Stub Server","archived":false,"fork":false,"pushed_at":"2024-07-24T15:21:30.000Z","size":6078,"stargazers_count":4404,"open_issues_count":143,"forks_count":1090,"subscribers_count":274,"default_branch":"master","last_synced_at":"2025-05-12T15:16:50.377Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"cantino/selectorgadget","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dreamhead.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE.txt","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":"2012-10-18T09:09:51.000Z","updated_at":"2025-05-09T09:28:01.000Z","dependencies_parsed_at":"2024-05-02T11:01:28.604Z","dependency_job_id":"cb20dc29-1f5c-41a1-aa5e-61b3f8d6bd54","html_url":"https://github.com/dreamhead/moco","commit_stats":{"total_commits":3876,"total_committers":36,"mean_commits":"107.66666666666667","dds":"0.020381836945304488","last_synced_commit":"70f7127d58c604e12696b86cdc11996250414bec"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamhead%2Fmoco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamhead%2Fmoco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamhead%2Fmoco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamhead%2Fmoco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dreamhead","download_url":"https://codeload.github.com/dreamhead/moco/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254041577,"owners_count":22004744,"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":[],"created_at":"2024-07-31T16:00:46.922Z","updated_at":"2025-05-13T23:08:16.676Z","avatar_url":"https://github.com/dreamhead.png","language":"Java","readme":"\u003cimg src=\"moco-doc/DukeChoice-960x90-lm.png?raw=true\"\u003e\n\n\u003ca href=\"https://github.com/dreamhead/moco\"\u003e\n  \u003cimg src=\"moco-doc/moco.png?raw=true\" width=\"100px\"\u003e\n\u003c/a\u003e\n\n# [Moco](https://github.com/dreamhead/moco) \n[![Build](https://github.com/dreamhead/moco/actions/workflows/build.yaml/badge.svg)](https://github.com/dreamhead/moco/actions/workflows/build.yaml)\n[![HitCount](http://hits.dwyl.com/dreamhead/moco.svg?style=flat-square)](http://hits.dwyl.com/dreamhead/moco)\n\nMoco is an easy setup stub framework.\n\n## Latest Release\n* [![Maven Central](https://img.shields.io/maven-central/v/com.github.dreamhead/moco-core.svg?label=Maven%20Central)](https://central.sonatype.com/artifact/com.github.dreamhead/moco-core)\n* [Release Notes](moco-doc/ReleaseNotes.md)\n\n## User Voice\n* [Let me know](https://jinshuju.net/f/Agawf9) if you are using Moco.\n* Join Moco [mailing list](https://groups.google.com/forum/#!forum/moco-stub) to discuss.\n\n## Why\nIntegration, especially based on HTTP protocol, e.g. web service, REST etc, is wildly used in most of our development.\n\nIn the old days, we just deployed another WAR to an application server, e.g. Jetty or Tomcat etc. As we all know, it's so boring to develop a WAR and deploy it to any application server, even if we use an embeded server. And the WAR needs to be reassembled even if we just want to change a little bit.\n\n## Quick Start\n* Download [Standalone Moco Runner](https://repo1.maven.org/maven2/com/github/dreamhead/moco-runner/1.5.0/moco-runner-1.5.0-standalone.jar)\n* Write your own configuration file to describe your Moco server configuration as follow:\n```json\n[\n  {\n    \"response\" :\n      {\n        \"text\" : \"Hello, Moco\"\n      }\n  }\n]\n```\n(foo.json)\n\n* Run Moco HTTP server with the configuration file.\n```shell\njava -jar moco-runner-\u003cversion\u003e-standalone.jar http -p 12306 -c foo.json\n```\n\n* Now, open your favorite browser to visit http://localhost:12306 and you will see \"Hello, Moco\".\n\n## Documents\n* More [Usages](moco-doc/usage.md)\n* Detailed [HTTP APIs](moco-doc/apis.md) or [Socket APIs](moco-doc/socket-apis.md)\n* Detailed [REST API](moco-doc/rest-apis.md)\n* Detailed [Websocket API](moco-doc/websocket-apis.md)\n* [Global Settings](moco-doc/global-settings.md) for multiple configuration files.\n* [Command Line Usages](moco-doc/cmd.md)\n* [Extend Moco](moco-doc/extending.md) if current API does not meet your requirement.\n\n## Build\nMake sure you have JDK and Gradle installed.\n\n* Clone Moco\n\n```shell\ngit clone git@github.com:dreamhead/moco.git\n```\n* Build Moco\n\n```shell\n./gradlew build\n```\n* Build uberjar\n\n```shell\n./gradlew uberjar\n```\n* Check code before commit\n\n```shell\n./gradlew check\n```\n\n## Contributing\nCheck out what you can help [here](moco-doc/plan.md) if you do not have any existing idea.\n\n## Copyright and license\nCopyright 2012-2023 ZHENG Ye\n\nLicensed under MIT License (the \"License\"); You may obtain a copy of the License in the LICENSE file, or at:\n\nhttps://raw.github.com/dreamhead/moco/master/MIT-LICENSE.txt\n\n## Powered By\n\n\u003cimg src=\"moco-doc/logo_intellij_idea.png?raw=true\"\u003e\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=dreamhead/moco\u0026type=Date)](https://star-history.com/#dreamhead/moco\u0026Date)\n\n","funding_links":[],"categories":["Java","Projects","Java (504)","项目","Uncategorized","测试","III. Network and Integration","Testing"],"sub_categories":["Testing","测试","Uncategorized","4. Http and ssh"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreamhead%2Fmoco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdreamhead%2Fmoco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreamhead%2Fmoco/lists"}