From e0f50d6603cb712c4f28ba8585e90c2a7d7a711a Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 18 Feb 2021 09:24:24 +0800 Subject: [PATCH] update readme --- README.md | 21 +++++++++++++++++++++ go.mod | 1 + go.sum | 2 ++ 3 files changed, 24 insertions(+) diff --git a/README.md b/README.md index 4239c2cca..448a2da0b 100644 --- a/README.md +++ b/README.md @@ -292,6 +292,27 @@ rockhopper --config rockhopper_sqlite.yaml create --type sql add_pnl_column rockhopper --config rockhopper_mysql.yaml create --type sql add_pnl_column ``` +### Setup frontend development environment + +``` +cd frontend +yarn install +``` + +### Testing Desktop App + +for webview + +```sh +make embed && go run -tags web ./cmd/bbgo-webview +``` + +for lorca + +```sh +make embed && go run -tags web ./cmd/bbgo-lorca +``` + ## Support ### By contributing pull requests diff --git a/go.mod b/go.mod index d75602761..d07893f3c 100644 --- a/go.mod +++ b/go.mod @@ -50,6 +50,7 @@ require ( github.com/tebeka/strftime v0.1.3 // indirect github.com/ugorji/go v1.2.3 // indirect github.com/valyala/fastjson v1.5.1 + github.com/webview/webview v0.0.0-20210216142346-e0bfdf0e5d90 github.com/x-cray/logrus-prefixed-formatter v0.5.2 github.com/zserge/lorca v0.1.9 golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad // indirect diff --git a/go.sum b/go.sum index 016c00791..a653a6d92 100644 --- a/go.sum +++ b/go.sum @@ -372,6 +372,8 @@ github.com/ugorji/go/codec v1.2.3 h1:/mVYEV+Jo3IZKeA5gBngN0AvNnQltEDkR+eQikkWQu0 github.com/ugorji/go/codec v1.2.3/go.mod h1:5FxzDJIgeiWJZslYHPj+LS1dq1ZBQVelZFnjsFGI/Uc= github.com/valyala/fastjson v1.5.1 h1:SXaQZVSwLjZOVhDEhjiCcDtnX0Feu7Z7A1+C5atpoHM= github.com/valyala/fastjson v1.5.1/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLrsQns1aXY= +github.com/webview/webview v0.0.0-20210216142346-e0bfdf0e5d90 h1:G/O1RFjhc9hgVYjaPQ0Oceqxf3GwRQl/5XEAWYetjmg= +github.com/webview/webview v0.0.0-20210216142346-e0bfdf0e5d90/go.mod h1:rpXAuuHgyEJb6kXcXldlkOjU6y4x+YcASKKXJNUhh0Y= github.com/x-cray/logrus-prefixed-formatter v0.5.2 h1:00txxvfBM9muc0jiLIEAkAcIMJzfthRT6usrui8uGmg= github.com/x-cray/logrus-prefixed-formatter v0.5.2/go.mod h1:2duySbKsL6M18s5GU7VPsoEPHyzalCE06qoARUCeBBE= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=