This crate provides the logjuicer-web
application to render report and access the logjuicer-api.
The application support the following SPA URL:
The application comes in two flavors:
- report: the report viewer (when build with
--no-default-features
) - api_client: the full web application for the web service (this is the default).
To build the web interface, you need to use trunk. Get it by running:
cargo install --locked trunk
To work on the report viewer, you first need to generate a report named logjuicer.bin
using the following command:
cargo run -p logjuicer-cli -- --report logjuicer.bin diff|url ...
If you are in a hurry, you can simply run diff Cargo.toml Trunk.toml
.
Then you can build, serve and hot-reload the report viewer by running the following trunk command:
trunk serve ./dev.html --address 0.0.0.0 --no-default-features
To work on the api client, you first need to start the API. Checkout the web-service crate.
Then you can build, serve and hot-reload the api client by running the following trunk command:
trunk serve ./index.html --address 0.0.0.0