Test bed for infra in rust
- Test infra can be brought up via
docker-compose
.just
is used as a runner tool to streamline this.
# Will build docker images and bring up `test/docker-compose.yaml`
just up
- Run CLI with test admin key to accept initial pairing
cargo run -p cli ./test/admin.pem
-
Access frontend at
http://localhost:5000
and you should see this endpoint listed -
Hit summit REST API to see added avalanche endpoint
curl -s -H 'content-type: application/json' localhost:5000/api/v1/endpoints | jq
- Install pnpm
- Setup and run dev
cd crates/summit/frontend
# Use pinned node version
pnpm env use --global $(cat .nvmrc)
# install deps
pnpm install
# run dev server (vite is setup to proxy api requests to backend in dev)
pnpm dev