jana_sessions_webpage/leptos_webpage/README.md

33 lines
747 B
Markdown
Raw Normal View History

2025-02-16 17:47:33 +01:00
# Jana Sessions Webpage
The webpage for Jana-Sessions (unofficial name), fully written in Rust.
## Building
The project currently uses leptos, so you'll want to install trunk (`cargo install trunk`).
For the build to work you'll need the `wasm32-unknown-unknown` target (`rustup target add wasm32-unknown-unknown`).
You can build the projekt with
```bash
trunk build --release
```
which will create the app in the `target/dist` folder.
Alternatively you can serve it locally with
```bash
trunk serve
```
To also access the local hosted page from other devices, use
```bash
trunk serve -a 0.0.0.0
```
## Deployment
Just use pythons webserver and point it to the dist folder
```bash
python3 -m http.server 8080 --directoy target/dist
```