A demo app to monitor the state of multiple "jobs" or other entities using a bar chart composed of circles.
Uses React and canvas rendering to scale to thousands of nodes.
The numeric URL parameter governs the number of nodes to render: /demo/:numberOfNodes
React storybook showing the components in this demo
The default script
npm run start:dev
runs the app in the development mode, using parameters from /node/.env.dev
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
To build the application without starting the server.
To create different ENVIRONMENT
s that use different API endpoints, create an .env.[ENVIRONMENT_NAME]
file in /node_env/
with the following environment variables:
REACT_APP_API_BASE_URL=http://my-api-endpoint.com
REACT_APP_API_PORT=10001
REACT_APP_API_JOB_STATUS_ROUTE_NAME=status
and start the server using.
REACT_APP_ENV=[ENVIRONMENT_NAME] npm run start
Similarly, you can use
REACT_APP_ENV=[ENVIRONMENT_NAME] npm run build
to just build the application.
Runs a React Storybook to display and debug different components in this application.
See Create React App ReadMe for all other available scripts.