Smart Site
Home Docs Getting Started Quick Start

Quick Start (5 Minutes)

This guide walks you through the core workflow of Smart SCADA Data Platform in 5 minutes: Login → Create Project → Add Device → Configure Tags → View Data → Create Alarm → Generate Report.

Prerequisite: Completed the Installation Guide and started both frontend and backend services.

💡 Tip: If you're using the system for the first time, we recommend reading the User Guide first, which has more detailed interface introductions and screenshot explanations.

📷 Screenshot language: All screenshots in this document use the English UI (captured from the live system). See the zh-CN counterpart for Chinese-UI screenshots.

Workflow Overview

┌──────────┐    ┌──────────┐    ┌──────────┐    ┌──────────┐    ┌──────────┐    ┌──────────┐    ┌──────────┐
│ 1. Login  │───▶│2. Create │───▶│3. Add    │───▶│4. Config │───▶│5. View   │───▶│6. Create │───▶│7. Generate│
│           │    │  Project │    │  Device  │    │  Tags    │    │  Data    │    │  Alarm   │    │  Report  │
└──────────┘    └──────────┘    └──────────┘    └──────────┘    └──────────┘    └──────────┘    └──────────┘

1. Log In to the System

Login Page

  1. Visit http://localhost:5173
  2. First use: Follow the initialization wizard to create an admin account (username admin, custom password)
  3. Already initialized: Log in with the admin account

After login, you land on the data platform home page at http://localhost:5173/system.

💡 To skip authentication for frontend debugging, set VITE_DEBUG_SKIP_AUTH=true in the frontend .env.development.

2. Create a Project

Project Management Page

A project is the top-level organizational unit of the data platform. Devices, tags, alarms, and reports all belong to a project.

  1. Navigate to Project Management from the left sidebar menu
  2. Click New Project
  3. Fill in project information:
Field Example Value Description
Project Name Demo Factory Display name
Project Code demo-factory Unique identifier, used as directory name
Description Quick start demo project Optional
  1. Click Save

After creation, the system automatically generates an isolated project database under {PROJECTS_DIR}/demo-factory/db/.

3. Add a Virtual Device

Device Management Page

Virtual devices require no real hardware, making them ideal for demos and testing.

  1. Enter the newly created project Demo Factory
  2. Navigate to Device Management from the left sidebar
  3. Click Add Device and fill in:
Field Example Value Description
Device Name Temperature Sensor 1 Display name
Device Code TEMP-001 Unique code
Protocol Type virtual Select virtual device
Scan Rate 1000 Milliseconds, collect once per second
Enable Collection ✅ Check
  1. After saving, the device appears in the list with status online

The channel configuration for virtual devices can be left empty — the system auto-generates simulated data.

4. Configure Data Tags

Device Detail - Data Tags

Data tags define the specific data points collected from a device.

  1. Click Temperature Sensor 1 in the device list to enter device details
  2. Switch to the Data Tags tab
  3. Click Add Tag:
Field Example Value Description
Tag Name Temperature Display name
Tag Code temperature Unique identifier
Data Type number Numeric type
Unit ℃ Display unit
Address random(20,80) Virtual device uses random function
Collection Enabled ✅ Check
  1. Add another tag Humidity (code humidity, range random(30,70))
  2. Save

5. View Real-Time Data

Real-Time Data Monitor

  1. Navigate to Real-Time Monitor or Data Monitor page
  2. Select project Demo Factory, device Temperature Sensor 1
  3. View real-time temperature and humidity values updating (refreshes every second)

You can also subscribe to data via WebSocket (see Real-Time Communication):

// Browser console example
const socket = io('http://localhost:4000');
socket.emit('subscribe:data', { projectId: '<project-id>', deviceId: '<device-id>' });
socket.on('data:update', (data) => console.log('Real-time data:', data));

6. Create an Alarm Rule

Alarm Management Page

  1. Navigate to Alarm Management → Alarm Rules from the left sidebar
  2. Click New Rule:
Field Example Value Description
Rule Name High Temperature Alarm Display name
Associated Device Temperature Sensor 1 Select device
Associated Tag temperature Select tag
Trigger Condition > 75 Temperature greater than 75
Alarm Level Critical Normal/Warning/Critical/Emergency
Enabled ✅ Check
  1. Save

When the virtual device generates a random temperature exceeding 75, the system automatically triggers an alarm. You can view it in Alarm Records, and it is pushed in real time via WebSocket.

7. Generate a Report

Report System Page

  1. Navigate to Report System from the left sidebar
  2. Click New Report
  3. Configure the report:
Field Example Value Description
Report Name Daily Report Display name
Data Source Temperature Sensor 1 Select device
Tags temperature, humidity Multi-select
Statistics Period Daily Hourly/Daily/Weekly/Monthly
Aggregation avg, max, min Average/Maximum/Minimum
  1. After saving, click Preview to view the report
  2. Click Export to download Excel / PDF

⚠️ Report historical data depends on InfluxDB. If InfluxDB is not configured, the report only contains the current snapshot data and cannot query historical trends.

Completion Checklist

After completing the above workflow, verify the following capabilities:

  • [ ] Can log in to the data platform
  • [ ] Can create and enter a project
  • [ ] Virtual device status is online
  • [ ] Data tags have real-time value updates
  • [ ] Alarm rules can be triggered and recorded
  • [ ] Report can be previewed or exported

Next Steps