2 Star 2 Fork 0

github/dreamhead_moco

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
gradle/wrapper
moco-core/src
moco-doc
moco-junit
moco-runner
moco-shell
.gitignore
.travis.yml
MIT-LICENSE.txt
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
proguard.pro
settings.gradle
克隆/下载
README.md 2.69 KB
一键复制 编辑 原始数据 按行查看 历史
dreamhead 提交于 4年前 . released 1.2.0

Moco Build Status

Moco is an easy setup stub framework.

Latest Release

  • 1.2.0

More details in Release Notes

User Voice

Why

Integration, especially based on HTTP protocol, e.g. web service, REST etc, is wildly used in most of our development.

In 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.

Quick Start

  • Download Standalone Moco Runner
  • Write your own configuration file to describe your Moco server configuration as follow:
[
  {
    "response" :
      {
        "text" : "Hello, Moco"
      }
  }
]

(foo.json)

  • Run Moco HTTP server with the configuration file.
java -jar moco-runner-<version>-standalone.jar http -p 12306 -c foo.json

Documents

Build

Make sure you have JDK and Gradle installed.

  • Clone Moco
git clone git@github.com:dreamhead/moco.git
  • Build Moco
./gradlew build
  • Build uberjar
./gradlew uberjar
  • Check code before commit
./gradlew check

Contributing

Check out what you can help here if you do not have any existing idea.

Copyright and license

Copyright 2012-2021 ZHENG Ye

Licensed under MIT License (the "License"); You may obtain a copy of the License in the LICENSE file, or at:

https://raw.github.com/dreamhead/moco/master/MIT-LICENSE.txt

Powered By

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/code-github/dreamhead_moco.git
git@gitee.com:code-github/dreamhead_moco.git
code-github
dreamhead_moco
dreamhead_moco
master

搜索帮助