Skip to content

TehPers/whtop

Repository files navigation

whtop

A server monitoring tool.

Dependencies

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

Running locally

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.

Running in Docker

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

License

This code is licensed under your choice of either MIT or Apache 2.0, except for:

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages