linkerd2/web
Franziska von der Goltz 3591936de3
fix inconsistent deployment count on servicemesh page (#69)
* fix inconsistent deployment count on servicemesh page.
* tests added for deploy count messaging on servicemesh page
* refactored code for Call To Action component to use 'instructions' in util
* refactored correlating css
2017-12-19 14:53:47 -08:00
..
app fix inconsistent deployment count on servicemesh page (#69) 2017-12-19 14:53:47 -08:00
srv Fix unit test runner and failing tests (#67) 2017-12-19 14:21:56 -08:00
templates Remove namespace property from the Conduit web app (#10) 2017-12-08 15:38:04 -08:00
util/filesonly Introducing Conduit, the ultralight service mesh 2017-12-05 00:24:55 +00:00
Dockerfile update go-deps image 2017-12-05 01:17:38 +00:00
README.md Swhite/css updates (#55) 2017-12-18 15:03:49 -08:00
main.go Remove namespace property from the Conduit web app (#10) 2017-12-08 15:38:04 -08:00

README.md

Conduit Dashboard

This is a React app. It uses webpack to bundle assets, and postcss to transform css.

The commands below assume that you're starting from the root of the repo.

First time setup

Install yarn and use it to install dependencies.

brew install yarn
cd web/app
yarn

Development

After pulling master:

If you just want to run the frontend:

cd web/app
yarn
yarn webpack
cd ..
go run main.go

The web server will be running on localhost:8084.

To develop with a webpack dev server, start the server in a separate window:

cd web/app
yarn webpack-dev-server

And then set the -webpack-dev-server flag when running the web server:

go run main.go -webpack-dev-server=http://localhost:8080

Run docker-compose

You can also run all of the go apps in a docker-compose environment.

From the root of the repo, run:

docker-compose build
docker-compose up -d

If you want to develop on the web service locally, stop it first, then run it locally and set the -api-addr flag to the address of the public API server that's running in your docker environment:

docker-compose stop web
cd web
go run main.go -api-addr=localhost:8085

Testing

Golang unit tests

To run:

go test ./...

JS unit tests

To run:

cd web/app
yarn karma start