distribution-calc/README.md

1 KiB

hypergeometric-calc

Web calculator for Hypergeometric Distribution built using Leptos.

Dependencies

You will need to install the Rust toolchain. We recommend to do using Rustup. Once you do that, we will need to install the WASM target

rustup target add wasm32-unknown-unknown

We will also use the Trunk tool to run and build our project.

Finally, it's recommended to install the leptosfmt tool, since plain rustfmt can't dealt with view! macros very well.

cargo install leptosfmt

Developing

To develop the project, run

trunk serve --port 3000 --open

which, will open the app in your default browser at http://localhost:3000.

Deploying

To build the project for release, use the command

trunk build --release

This will output the files necessary to run your app into the dist folder; you can then use any static site host to serve these files.