-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
- Node.js ≥ 18
- PostgreSQL 15+
- Docker & Docker Compose
- Go 1.21+ (for the blockchain node)
# Clone
git clone https://github.com/flaukowski/0xSCADA.git
cd 0xSCADA
# Install dependencies
npm install
# Database setup
npm run db:migrate
# Start development (server + client)
npm run dev
# …or bring up the full stack with Docker
docker compose up -dOnce running, the React dashboard streams live tags, alarms, and pipeline health over WebSocket, and the API gateway exposes REST + /metrics.
# Server / client
npm run dev:server # server with hot reload
npm run dev:client # React dev server
# Database
npm run db:migrate # run migrations
npm run db:seed # seed development data
# Smart contracts
forge build # Foundry build
forge test # Foundry tests
npx hardhat compile # Hardhat compile
npx hardhat test # Hardhat tests
# Docker
docker compose up -d # full stack
docker compose logs -f # stream logs
# Kubernetes
helm install 0xscada helm/0xscada # deploy via HelmToolchain note: contract tests run under Foundry (
forge); the Hardhat path may lag. Preferforge testfor contracts.
npm test # unit tests
npm run test:integration # integration tests
npm run test:chaos # chaos-engineering suiteBefore proposing changes, the project's convention is: npx tsc --noEmit clean and the relevant test project green. Every agent ready issue states the exact commands that prove it done — see For AI Agents.
The 0xscada CLI covers day-to-day operations:
npx 0xscada agents # manage AI agents
npx 0xscada alarms # alarm management
npx 0xscada containers # container orchestration
npx 0xscada db # database operations
npx 0xscada gateway # gateway management
npx 0xscada shell # interactive shell
npx 0xscada tags # tag-point management0xSCADA/
├── client/ # React dashboard UI (components, hooks, pages)
├── server/ # TypeScript API gateway
├── cli/ # CLI commands
├── contracts/ # Solidity smart contracts
├── blockchain/ # Custom chain (0x5CADA), go-ethereum fork
├── kernel/ # Linux 6.19-rc5 PREEMPT_RT fork
├── k8s/ helm/ # Kubernetes manifests + Helm charts
├── docker/ # Docker Compose + Dockerfiles
├── migrations/ # PostgreSQL migrations
├── shared/ # Shared types & utilities
├── docs/ # 90+ documentation files
└── test/ # Test suites
For deploying beyond local dev — Docker Compose, Helm, and production Kubernetes (networking, storage, scheduling, security, GitOps) — see Deployment.
0xSCADA — decentralized industrial control · Apache 2.0 · 0x5CADA · "Where atoms meet bits." Verify, not trust.