mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 18:45:53 +00:00
System Monitor Frontend
A React-based frontend for real-time system monitoring with socket.io for live data updates.
Features
- Real-time network data monitoring
- WebSocket communication with the backend
- Responsive Material UI design
- Automatic reconnection handling
Requirements
- Node.js 18.x or higher
- npm or yarn
Installation
- Install dependencies:
npm install
# or
yarn
- Configure environment (if needed):
Create a .env file in the root directory with the following variables:
VITE_API_URL=http://your-backend-url:3000
Development
To start the development server:
npm run dev
# or
yarn dev
This will start a development server at http://localhost:5173
Building for Production
To create a production build:
npm run build
# or
yarn build
This will generate optimized files in the dist directory.
Preview Production Build
To preview the production build locally:
npm run preview
# or
yarn preview
Troubleshooting
If you're experiencing issues with real-time updates:
- Check that the WebSocket server is running
- Ensure your browser supports WebSockets
- Check the network tab in your developer tools for any connection errors
- Verify that the proxy settings in vite.config.js match your backend URL