A full-stack real-time temperature monitoring application with intelligent alerts, built with React, Node.js, and WebSockets.
- Real-time Temperature Monitoring: Live temperature readings updated every 5 seconds
- Interactive Charts: Visual temperature trends with custom canvas-based charts
- Smart Alerts: Automatic notifications when temperature exceeds 35°C
- Data Export: Download temperature logs as CSV files
- Responsive Design: Beautiful UI that works on all devices
- WebSocket Connection: Real-time data streaming with automatic reconnection
- Frontend: React, TypeScript, Tailwind CSS, Vite
- Backend: Node.js, Express, WebSocket (ws)
- Icons: Lucide React
- Deployment: Render (full-stack)
- Install dependencies:
npm install- Run the full application (frontend + backend):
npm run full- Or run components separately:
# Backend only
npm run server
# Frontend only
npm run devThe application will be available at:
- Frontend: http://localhost:5173
- Backend API: http://localhost:3001
This application is configured for deployment on Render using the included render.yaml configuration.
- Connect your GitHub repository to Render
- Render will automatically detect the
render.yamlfile - The application will build and deploy automatically
The deployment includes:
- Automatic builds with
npm run build - Static file serving for the React frontend
- WebSocket and API endpoints on the same domain
- Environment variable configuration
GET /api/temperature- Get current temperatureGET /api/temperature/history?limit=50- Get temperature historyGET /api/temperature/export- Download CSV exportGET /api/health- Health check endpointWebSocket /- Real-time temperature updates
NODE_ENV- Set to 'production' for production buildsPORT- Server port (automatically set by Render)
MIT License