Skip to content

CodingDance/moco

This branch is 1820 commits behind dreamhead/moco:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e67d58b · Dec 4, 2017
Nov 12, 2017
Nov 30, 2017
Dec 1, 2017
Jun 10, 2016
Dec 4, 2017
Aug 7, 2015
Feb 1, 2014
Oct 24, 2017
Apr 24, 2017
Jun 12, 2017
Dec 3, 2017
Dec 26, 2013
Jul 12, 2017
Sep 19, 2016
Jul 17, 2017
Sep 19, 2015

Repository files navigation

Moco is an easy setup stub framework.

Latest Release

  • 0.11.1

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 [email protected]: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-2017 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

About

Easy Setup Stub Server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 98.6%
  • Shell 1.2%
  • Groovy 0.2%