1.3 KiB
1.3 KiB
Installation Guide
Quick Install on Ubuntu (One Command)
curl -fsSL https://raw.githubusercontent.com/nmemmert/monitor/main/install-ubuntu.sh | bash
The script will:
- ✅ Install Node.js 20.x
- ✅ Install PM2 process manager
- ✅ Clone and set up the application
- ✅ Configure firewall
- ✅ Set up auto-start on boot
- ✅ Guide you through email/webhook setup
Manual Installation
Prerequisites
- Node.js (v14 or higher)
- npm or yarn
Setup
- Install dependencies for both server and client:
npm run install-all
- Create a
.envfile in the root directory (copy from.env.example):
cp .env.example .env
- Configure your
.envfile:
PORT=3001
# Email Notifications (optional)
EMAIL_ENABLED=true
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_USER=your-email@gmail.com
EMAIL_PASS=your-app-password
EMAIL_FROM=your-email@gmail.com
EMAIL_TO=your-email@gmail.com
# Webhook Notifications (optional)
WEBHOOK_ENABLED=false
WEBHOOK_URL=https://your-webhook-url.com
Development Mode
Run both server and client in development mode:
npm run dev
- Server runs on http://localhost:3001
- Client runs on http://localhost:3000
Production Mode
Build and run in production:
npm run build
npm start
Server will serve the built React app on http://localhost:3001