The dashboard roughly consists of two parts, a front end single-page web-application build with Typescript and React, and a back-end web server built with Python. These two parts are located within the directory
ray/dashboard
.
You can install the dependencies of the dashboard by running npm install
in the ray/dashboard/client
directory, and generate a production build of the dashboard by running npm run build
.
For general purpose development, the best setup is to use the hot-reloading server provided by the command npm run start
in the ray/dashboard/client
directory. This command will start the web application on port 3000 and recompile / reload front-end file changes as you make them. This also allows browser debuggers to be much more useful, as you can set breakpoints in your typescript code, as opposed to working with minified javascript in a production build.
In order to connect this development server up to a live running ray cluster, the cluster m