MaCcoyS only provides a web API for accessing the data. This is a separate frontend to make accessing the results much easier.
This frontend is build using Dioxus, which uses Rust to render and manage the DOM, handling any data and compiles into a WASM application. It is similar to React or VueJS.
Another benefit of Dioxus is also the possibility to build an Electron Desktop App if necessary.
- Clone the repositry
- Install rustup
- Install sass, make sure it is available in your
PATH
assass
- Install Dioxus:
cargo install dioxus-cli
- Install WASM toolchain:
rustup target add wasm32-unknown-unknown
dx serve
Per default the application uses the configuration frontend.config.toml
. If your want to adjust it:
- Make a copy of
frontend.config.toml
and adjust it - Run:
env MACCOYS_CONFIG=<PATH_TO_NEW_CONFIG> dx serve
While a WASM application has no access to any filesystem, the configuration is compiled into the binary. Therefore it needs to be selected during compiling.
dx build --release
- Serve the created
dist
folder with any web server, e.g. NginX
dx serve --platform web