jana_sessions_webpage/leptos_webpage/README.md

38 lines
750 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`).
2025-02-20 10:55:18 +01:00
You can build the projekt with
2025-02-16 17:47:33 +01:00
```bash
trunk build --release
```
2025-02-20 10:55:18 +01:00
2025-02-16 17:47:33 +01:00
which will create the app in the `target/dist` folder.
Alternatively you can serve it locally with
2025-02-20 10:55:18 +01:00
2025-02-16 17:47:33 +01:00
```bash
trunk serve
```
To also access the local hosted page from other devices, use
2025-02-20 10:55:18 +01:00
2025-02-16 17:47:33 +01:00
```bash
trunk serve -a 0.0.0.0
```
## Deployment
2025-02-20 10:55:18 +01:00
Just use pythons webserver and point it to the dist folder
2025-02-16 17:47:33 +01:00
```bash
python3 -m http.server 8080 --directoy target/dist
```