My personal Web App template leveraging axum, Askama, htmx and Tailwind. Deployed with Fly.io.
Get the latest release and give it executable permissions:
# Example for linux
curl -LO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64
chmod +x tailwindcss-linux-x64
mv tailwindcss-linux-x64 tailwindcss
The tailwind.config.js
file can be generated by running:
./tailwindcss init
Simply copy htmx into your project.
Get the file from unpkg.com
Or simply run:
curl -L https://unpkg.com/htmx.org/dist/htmx.min.js -o htmx.min.js
For a good overview you can check the Speedrun section of the official documentation.
Here's a repository with a very good example how to configure the Dockerfile: letsgetrusty
Make sure you have cargo-watch
installed:
# For Arch Linux
sudo pacman -S cargo-watch
Make sure you have cargo-make
installed:
# For Arch Linux
sudo pacman -S cargo-make
Remove old public directory if any, create a new one, populate it with assets files:
cargo make build-public
Clean, Format and Run project with cargo watch:
cargo make run-dev
Clean, Format and Build project for release:
cargo make run-release