SCADA

Development Environment

This guide explains how to prepare a local workstation for LiRAYS-SCADA development.

Prerequisites

  • Rust toolchain with Edition 2024 support
  • Node.js 24+
  • Protocol Buffers compiler (protoc)

Local Run Workflow

1. Build Frontend Assets

From the repository root:

cd frontend
npm install
npm run generate:proto
npm run build
cd ..

2. Run the Backend

Use a config file (for example settings-dev.yaml) and start the server:

cargo run --bin lirays-scada -- --config ./settings-dev.yaml

Default local endpoint:

  • http{s}://127.0.0.1:8245

3. Optional Frontend Dev Mode

If you are working on frontend code, run the backend first and then start Vite in a second terminal:

cd frontend
npm run dev

Frontend dev URL:

  • http://127.0.0.1:5173