A real-time system monitoring dashboard built with React and Node.js.
- Real-time system metrics monitoring
- Beautiful and responsive charts
- WebSocket for live updates
- Dark theme support
├── apps
│ ├── dashboard # Frontend React application
│ └── server # Backend Node.js server
└── packages
└── chart-components # Shared chart components
- Node.js 18 or later
- pnpm 8 or later
- Clone the repository
git clone https://github.com/iskWang/leadtek-assignment.git
cd leadtek-assignment- Install dependencies
pnpm install- Set up environment variables
Copy the example environment files and modify them as needed:
# Root directory
cp .env.example .env
# Server
cp apps/server/.env.example apps/server/.env
# Dashboard
cp apps/dashboard/.env.example apps/dashboard/.env- Start the backend server:
pnpm --filter server dev- Start the frontend application:
pnpm --filter dashboard dev- Open your browser and visit
http://localhost:3002
NODE_ENV: Development environmentSERVER_PORT: Backend server portCLIENT_PORT: Frontend application port
PORT: Server port (inherits from root)WS_PATH: WebSocket endpoint path
VITE_PORT: Frontend port (inherits from root)VITE_API_URL: Backend API URLVITE_WS_PATH: WebSocket endpoint path
MIT