Developer setup
Run the real Rust platform, SQLite accounts, SSR and Vite behind one local HTTPS origin — without Docker or root access.
Prepare your checkout
All commands below run from the rumahl repository root. Read CONTRIBUTING.md and ARCHITECTURE.md at your checked-out revision. The repository guide explains the module boundaries; development troubleshooting covers TLS, watchers and state locks.
git clone https://github.com/rumahl/rumahl.git
cd rumahl
What you need
Native full-stack development runs on Linux or WSL2. The development server uses the real platform, the local account database and the React shell; it is not a fixture-only mock.
- The repository Rust toolchain
- Node 22.12+ or Node 24, with ICU/Intl support
- pnpm 11.19.0
- OpenSSL
- No Docker, nginx, root access or global watch utility
Start the developer server
Open https://localhost:8443. React components use Fast Refresh, CSS updates in place, and Rust changes trigger an incremental rebuild followed by a platform restart.
pnpm --dir frontend install --frozen-lockfile
pnpm --dir frontend dev
First login
- On first start the server creates an isolated developer account with a random password.
- Read the credentials from .rumahl-dev/credentials.json (owner-only permissions).
- Trust the generated public certificate in a dedicated development browser profile.
- Sign in. Accounts and sessions survive restarts.
Continuing past a certificate warning can load the login page while Chromium rejects the service worker and WebSocket hot reload. Trust the generated certificate or pass your own localhost certificate with --cert and --key.
Daily workflow
- Shell components and CSS: Vite hot update with React Fast Refresh where possible.
- Shared contracts or non-component client modules: the page may reload; Rust remains authoritative.
- SSR source: the next request loads the changed module.
- Rust files or Cargo manifests: debounced incremental build, then a process replacement after a successful compile.
- Launcher or Vite configuration: restart the developer command.
pnpm --dir frontend dev --poll --port 9443
pnpm --dir frontend dev --no-watch
Development boundaries
.rumahl-dev/ is Git-ignored. The server creates a separate developer state directory, keeps sockets in a private temporary directory and binds only to 127.0.0.1. It never uses the installed system state at /var/lib/rumahl.
- Same SSR render function and request bounds as production.
- Strict production CSP and CSRF checks remain active.
- No unauthenticated development API performs privileged actions.
- The fixture-only demo is available with pnpm --dir frontend dev:demo, but is not a substitute for the full-stack server.
Checks
pnpm --dir frontend typecheck
pnpm --dir frontend lint
pnpm --dir frontend test
pnpm --dir frontend build
cargo build --locked -p rumahl-platform-service
python3 tests/e2e/development/check.py
Need more context? Read the source or open a discussion with the project.