Add instructions to run web locally (#114)

The web README.md mentions running locally, but it's not explicit about
how to connect to public-api.

Add notes on various ways to connect a local web to a public-api
process.

Signed-off-by: Andrew Seigner <andrew@sig.gy>
This commit is contained in:
Andrew Seigner 2018-01-05 15:52:37 -08:00 committed by GitHub
parent 2bd9f99f6b
commit 9eb5cc69f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 1 deletions

View File

@ -30,6 +30,17 @@ go run main.go
The web server will be running on localhost:8084.
Note the web process depends on a public-api server, for which you have three options:
1. Boot public-api locally
```
go run ../controller/cmd/public-api/main.go
```
2. Connect to public-api in docker-compose (see below)
3. Connect to public-api in Kubernetes (see below)
To develop with a webpack dev server, start the server in a separate window:
```
@ -68,7 +79,7 @@ that's running in your docker environment:
```
docker-compose stop web
cd web
go run main.go -api-addr=localhost:8085
go run main.go -api-addr=localhost:8085 # where localhost is the Docker address
```
## Run Web against a public API server in Kubernetes