This repository is a template for Yew setup with Tailwind. This is not an official template, I just thought it would be a nice starting point.
rustup target add wasm32-unknown-unknown
trunk serve
serve this app just using Docker locally.
# Build the image
# Make take few minutes to compile the first time
docker build -t yew-tailwind-app .
# Serve the app locally out of port 8080
docker run -d -p 8080:80 --name yew-tailwind-container yew-tailwind-app
cargo install yew-fmt
"emeraldwalk.runonsave": {
"commands": [
{
"match": "\\.(rs)$",
"cmd": "yew-fmt ${file}"
}
]
}
Currently this application is set up for deployment with fly.io, but could be adjusted for other cloud providers or self-hosting.
fly auth login
fly deploy
Please let me know if you have issues, tips, and/or tricks! Heck, even if you just used/enjoyed this template. I am interested in maintaining this!
I can be reached through my portfolio site here under "Contact & Socials". Thanks for using something I made!
<link data-trunk href="*path to compiled tailwind styles*" rel="css" />