distribution-calc/README.md

40 lines
1,021 B
Markdown
Raw Normal View History

2025-08-05 18:38:16 -04:00
# distribution-calc
Web calculator for Probability Distributions built using [Leptos].
2025-03-14 17:48:32 -03:00
## 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
```sh
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.
```sh
cargo install leptosfmt
```
2025-03-14 17:48:32 -03:00
## Developing
To develop the project, run
```sh
2025-03-15 21:44:33 -03:00
trunk serve --open
2025-03-14 17:48:32 -03:00
```
which, will open the app in your default browser at `http://localhost:3000`.
## Deploying
To build the project for release, use the command
```sh
trunk build --release
```
2025-03-15 21:44:33 -03:00
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.
2025-03-14 17:48:32 -03:00
[Leptos]: https://github.com/leptos-rs/leptos
[Rustup]: https://rustup.rs/
[Trunk]: https://github.com/trunk-rs/trunk
2025-03-14 21:02:08 +00:00