Then install the dependencies of the frontend React application with:
cd dashboard/frontend
yarn install
First we need to start the backend server:
export KUBECONFIG=$(echo ~/.kube/config)
go run dashboard/backend/main.go
At this point the backend will be running on port 8080
.
Start the frontend's development server in another terminal with:
cd dashboard/frontend
yarn start
This should open a window in your browser (in port 3000
).
The development server will rebuild the application and refresh your browser automatically every time you save a file.