Skip to content
/ a-flying-hat Public template

My personal Web App template leveraging axum, Askama, htmx and Tailwind. Deployed with Fly.io.

Notifications You must be signed in to change notification settings

lpnh/a-flying-hat

Repository files navigation

a flying hat

My personal Web App template leveraging axum, Askama, htmx and Tailwind. Deployed with Fly.io.

Setup

Tailwind (standalone CLI)

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

htmx

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

Fly.io

For a good overview you can check the Speedrun section of the official documentation.

Dockerfile

Here's a repository with a very good example how to configure the Dockerfile: letsgetrusty

cargo-watch

Make sure you have cargo-watch installed:

# For Arch Linux
sudo pacman -S cargo-watch

cargo-make

Make sure you have cargo-make installed:

# For Arch Linux
sudo pacman -S cargo-make

Available tasks:

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

About

My personal Web App template leveraging axum, Askama, htmx and Tailwind. Deployed with Fly.io.

Topics

Resources

Stars

Watchers

Forks