WHAT HOW?
-
run app
cargo run
-
install trunk
cargo install trunk
-
add wasm build target
rustup target add wasm32-unknown-unknown
-
serve ui
trunk serve ui
-
start tailwind
NODE_ENV=production tailwindcss -c ./tailwind.config.js -o ./public/tailwind.css --minify --watch
docker-compose -H "ssh://<user>@<ip>" -f docker-compose.prod.yml up
configuration for the ui is located in ui/Trunk.toml
. The default ip for the ui is 0.0.0.0:8080
.
The api currently has no config and runs on localhost:3030
, however it's requests are proxied by the ui and therefore does not need to be exposed tho the internet.