moco.sh

Solution 1: SaaS

Value proposition

  1. Concise mock server configurations

  2. Fast mock server (moco init && moco start) → https://localhost:12306 is available locally

  3. (Low priority) Fast exposing of localhost (moco start --remote) → https://local.moco.sh/xyz is available with dependency on the local moco server.

  4. Fast sharing of moco configuration (mock deploy) → https://moco.sh/xyz is available with no dependency on the local moco server.

Monetary

Customers need to have a paid subscription to get a fixed URL.

Implementation

moco cli

这个cli应当具有以下功能:

  1. 下载或者内置moco library

  2. 创建一个本地配置文件并执行moco

  3. (低优先级)跟远程服务连接,并分配目录(需要远程服务配合)

  4. 将本地配置文件打包上传到远程服务,并分配永久目录

Option 1: node module

NodeJs是一个广泛使用的运行环境。同一个版本的Node App可以在Windows、Mac、Linux上运行。smee.io的客户端就是用Node编写的,将来添加#3功能比较容易。不过这个工作量如果用其他语言来写也非常小。

缺点是要从Node调用Java。

Option 2: Java application

 

Step

Description

 

Step

Description

 

1

moco init

Option 1:

 

2