A server monitoring tool.
whtop
only depends on cargo
, which can be installed with rustup
.
whtop_web
has the following additional dependencies:
-
The
wasm32-unknown-unknown
target:rustup target add wasm32-unknown-unknown
-
trunk
:cargo install trunk
Finally, cargo-make
is needed to run the tasks defined in Makefile.toml
:
cargo install cargo-make
To run the frontend and backend locally, run:
cargo make run
The frontend will automatically rebuild whenever a change is detected. The backend will not rebuild automatically, however.
First, build the image:
cargo make build-docker
Then, run the image:
cargo make run-docker
cargo make monitor-docker
# To stop the server:
cargo make stop-docker
There is also a docker-compose.yaml
file included for convenience. To use it, run:
docker compose build
docker compose up
This code is licensed under your choice of either MIT or Apache 2.0, except for:
- The code under
backend/sysinfo
(License - MIT).