Installation

Prerequisites, .env, CLI commands, quick start.

● ● ●
[workspace]
members = ["myapp", "myapp/migration"]
resolver = "2"

[workspace.package]
version = "0.1.0"
edition = "2024"
rust-version = "1.85"

[workspace.dependencies]
runique  = { version = "1.1.50", features = ["orm", "postgres"] }
tokio    = { version = "1", features = ["full"] }
serde    = { version = "1", features = ["derive"] }
SECRET_KEY=a_long_random_secret_key
DATABASE_URL=postgres://user:password@localhost:5432/my_database
DEBUG=true
# Install the CLI
cargo install runique

# Generate the project
runique new my-project

# Start the server (template hot reload in DEBUG)
runique start

# Migrations
runique makemigrations
runique migrate up
runique migrate down
runique migrate status