src/Dashboard/Orleans.Dashboard.App/README.md
This directory contains the frontend web application for the Orleans Dashboard, built with React and Vite.
Orleans.Dashboard.App/
├── src/ # React application source code
│ ├── components/ # Reusable React components
│ ├── grains/ # Grain-specific views
│ ├── logstream/ # Log streaming components
│ ├── overview/ # Dashboard overview components
│ ├── reminders/ # Reminders view components
│ ├── silos/ # Silo management components
│ ├── lib/ # Utility libraries
│ └── index.jsx # Application entry point
├── public/ # Static assets (copied to build output)
│ ├── favicon.ico
│ ├── OrleansLogo.png
│ └── *.css, *.js # Third-party CSS/JS libraries
├── screenshots/ # Dashboard screenshots for documentation
├── index.html # HTML template
├── package.json # npm dependencies and scripts
├── vite.config.ts # Vite build configuration
└── tsconfig.json # TypeScript configuration
cd src/Dashboard/Orleans.Dashboard.App
npm install
Run the Vite development server for hot module replacement:
npm run dev
This will start the development server at http://localhost:5173 (or another port if 5173 is in use).
To build the production bundle:
npm run build
This builds the application to ../Orleans.Dashboard/wwwroot/ which is then embedded as resources in the Orleans.Dashboard C# project.
To preview the production build locally:
npm run preview
The frontend application is automatically built when you build the Orleans.Dashboard C# project. The build process is managed by Orleans.Dashboard.Frontend.targets which:
node_modules doesn't existnpm run build to compile the frontendThe build uses incremental compilation, so the frontend is only rebuilt when source files change.
This project was migrated from Browserify to Vite for improved:
The migration updated: