Installation
Quick Start Guide
This guide will help you set up and run Fermah Core locally.
Requirements
System Requirements
- Docker or Orbstack
- Rust and related tools
- PostgreSQL client libraries
- Sea-ORM CLI
Installation Steps
Install Docker or Orbstack
Install Rust and Required Tools
# Install Rust curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh # Install additional tools cargo install just rustup target add wasm32-unknown-unknown cargo install wasm-bindgen-cli --version 0.2.100 cargo install deno --locked --version 2.1.5Install PostgreSQL Libraries
# macOS brew install libpq # Ubuntu sudo apt install libpq-dev postgresql-clientInstall Sea-ORM CLI
cargo install sea-orm-cli
Database Setup
Reset the database:
just db resetStart PostgreSQL server:
just db restartDefault credentials:
- Username:
postgres - Password:
postgres
- Username:
Running Fermah Core
Basic Commands
Build a workflow:
just workflow buildRun the core:
just run runtimeRun a prover node:
just run start-new-prover-nodeUpload and execute a workflow:
just run upload-executeRun everything in one command:
just run runtime-upload-execute
Docker Integration
To run Docker tests:
Build the Docker image:
docker build -f Dockerfile -t py_test:latest .Build a workflow:
cd crates/workflow/fermah-workflow-docker-module just workflow buildRun prover node with Docker support:
cargo run -p fermah-prover-node --features docker -- start
The Fermah Core architecture consists of three main components: the Runtime Client for input processing, the Core Services (Runtime, Database, and Workflow Jail) for orchestration, and the Prover Network for distributed proof generation.