Skip to content

Get started [V0]

Simon Mo edited this page Jan 13, 2020 · 1 revision

Assume current working directory is at ~/go/src/github.com/harbor-ml/modelzoo:

Start the go server:

cd go
go build
./go seed --data ../models.json
./go serve

You should see

2019/10/14 19:39:39 Server started, listening to port 9000

Start the clipper mock:

cd python/model_io
gunicorn --bind 0.0.0.0:10000 clipper:app

You should see

[2019-10-14 14:33:37 -0700] [21406] [INFO] Starting gunicorn 19.7.1
[2019-10-14 14:33:37 -0700] [21406] [INFO] Listening at: http://0.0.0.0:10000 (21406)
[2019-10-14 14:33:37 -0700] [21406] [INFO] Using worker: sync
[2019-10-14 14:33:37 -0700] [21449] [INFO] Booting worker with pid: 21449

Start the web proxy:

  • Download it from grpc-web
  • Unzip and run the binary:
./grpcwebproxy-v0.11.0-osx-x86_64 --backend_addr=localhost:9000 --run_tls_server=false --allow_all_origins

Start the web frontend:

cd js
npm install
npm start

You should see

Compiled successfully!

You can now view js in the browser.

  http://localhost:3000/

Note that the development build is not optimized.
To create a production build, use npm run build.

Start gRPC HTTP bridge gateway

./go proxy 

Starts at port 9090

Clone this wiki locally