Getting Started
This guide will help you get Ordo up and running quickly.
Prerequisites
- Rust: 1.83 or later
- Node.js: 18 or later (for visual editor)
- pnpm: 8 or later (for visual editor)
Installation
Clone the Repository
bash
git clone https://github.com/Pama-Lee/Ordo.git
cd OrdoBuild the Server
bash
cargo build --releaseThe compiled binary will be at ./target/release/ordo-server.
Run the Server
bash
# Start with default settings (HTTP on 8080, gRPC on 50051)
./target/release/ordo-server
# Or with persistence enabled
./target/release/ordo-server --rules-dir ./rulesVerify Installation
Check the health endpoint:
bash
curl http://localhost:8080/healthExpected response:
json
{
"status": "healthy",
"version": "0.2.0",
"uptime_seconds": 5,
"storage": {
"mode": "memory",
"rules_count": 0
}
}Visual Editor
To use the visual rule editor:
bash
cd ordo-editor
pnpm install
pnpm devOpen http://localhost:3001 in your browser.
Or try the online playground.
Docker
bash
# Build the image
docker build -t ordo-server .
# Run with persistence
docker run -p 8080:8080 -v ./rules:/rules ordo-server --rules-dir /rulesNext Steps
- Quick Start - Create and execute your first rule
- Rule Structure - Understand how rules are defined
- Expression Syntax - Learn the expression language