Architecture

Database Architecture

The database layer handles data persistence and state management.

Setup

  1. Install PostgreSQL client:
# For macOS
brew install libpq

# For Ubuntu
sudo apt install libpq-dev postgresql-client
  1. Install database tools:
cargo install sea-orm-cli
  1. Initialize database:
just db reset
just db restart

Configuration

Default database configuration:

  • Host: localhost
  • Username: postgres
  • Password: postgres
  • Database: fermah

Production Setup

Make sure to use secure credentials in production environments.

Previous
Prover Nodes