Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tarkah committed Nov 13, 2024
1 parent 2f35fa8 commit cd648ca
Showing 1 changed file with 3 additions and 32 deletions.
35 changes: 3 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,14 @@
# Infra Test
# Infra

[![docs](https://img.shields.io/badge/docs-passing-brightgreen)](https://serpent-os.github.io/infra-test/)

Test bed for infra in rust
SerpentOS service infrastructure

## Testing

- Test infra can be brought up via `docker-compose`. `just` is used as a runner tool to streamline this.
- Infra can be brought up via `docker-compose`. `just` is used as a runner tool to streamline this.

```sh
# Will build docker images and bring up `test/docker-compose.yaml`
just up
```

- Run CLI with test admin key to accept initial pairing

```sh
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

```sh
curl -s -H 'content-type: application/json' localhost:5000/api/v1/endpoints | jq
```

#### Frontend

- Install pnpm
- Setup and run dev

```sh
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
```

0 comments on commit cd648ca

Please sign in to comment.