From 17aac50cbfd17a80b24935b8e7ac9db99c24c8d6 Mon Sep 17 00:00:00 2001 From: "qiang.ou" Date: Tue, 19 Jun 2018 21:09:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BC=80=E5=8F=91=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 99806ae..28c8bb8 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,24 @@ * gocron `./bin/gocron web` * gocron-node `./bin/gocron-node` +### 开发 + +1. 安装Go1.9+, Node.js, Yarn +2. 安装前端依赖 `make install-vue` +3. 启动gocron, gocron-node `make run` +4. 启动node server `cd web/vue && yarn run dev`, 访问地址 http://localhost:8080 + +访问http://localhost:8080, API请求会转发给gocron + +`make` 编译 + +`make run` 编译并运行 + +`make package` 打包 +> 生成当前系统的压缩包 gocron-v1.5-darwin-amd64.tar.gz gocron-node-v1.5-darwin-amd64.tar.gz + +`make package-all` 生成Windows、Linux、Mac的压缩包 + ### 命令 * gocron