-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,14 @@ | ||
# Infra Test | ||
# Infra | ||
|
||
[](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 | ||
``` |