Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard: Dev Guide #417

Merged
merged 1 commit into from
Feb 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions dashboard/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Kubeflow's Dashboard for TfJobs

## Developer Guide

### Dependencies
* [Nodejs](https://nodejs.org/en/)
* [Yarn](https://yarnpkg.com/en/docs/install)

Then install the dependencies of the frontend React application with:
```sh
cd dashboard/frontend
yarn install
```

### Starting the dashboard locally

First we need to start the backend server:

```sh
export KUBECONFIG=$(echo ~/.kube/config)
go run dashboard/backend/main.go
```

At this point the backend will be running on port `8080`.

For development, modify `frontend/src/services.js` to point the local backend server (make sure you don't commit this change):
```js
let host = "http://localhost:8080";
```

Start the frontend's development server in another terminal with:
```sh
cd dashboard/frontend
yarn start
```

The development server will rebuild the application and refresh your browser automatically every time you save a file.