Development environment
n5i is built from source. This page explains how to build the backend and run the dashboard locally.
Backend
Requirements:
- A recent stable Rust toolchain (the workspace uses edition 2024)
protoc, the Protocol Buffers compiler, for the gRPC definitions
bash
git clone https://gitlab.com/n5i/backend.git
cd backend
cargo build
cargo testThe API service reads its configuration from environment variables, for example DATABASE_URL, BIND_ADDRESS, RPC_SECRET and AGENT_ENDPOINT. To export the GraphQL schema, run cargo schema.
Dashboard
The dashboard repository is a workspace with the dashboard and the app UI packages. It uses Bun as its package manager, so use Bun for the commands below.
bash
git clone https://gitlab.com/n5i/dashboard.git
cd dashboard
bun install
bun run dev # the dashboard, expects the backend API at 127.0.0.1:3001
bun run lint
bun run typecheck
bun run test
bun run buildTo regenerate the GraphQL client code after changing queries, run bun run generate:gql in apps/dashboard.
To work on @n5i/ui, run bun run dev in packages/ui. It starts a playground with all components, and a test host for the app bridge at /harness/host.
This website
See the README of the website repository.