Shuttle Axum HTMX example

This repository is an example of how you can use Shuttle with Axum, Askama and htmx to create a frontend that's easily extendable and requires zero framework knowledge, while being able to easily inject variables from the backend into the frontend.

Usage

Use the following command to clone this repo (make sure you have cargo-shuttle installed):

cargo shuttle init --from joshua-mo-143/shuttle-axum-htmx-ex

Follow the prompt, then cd into the folder and use cargo shuttle deploy (add --ad or --allow-dirty if on a dirty or uncommitted Git branch) to deploy to Shuttle!

Want to run this locally? Simply use cargo shuttle run.

Troubleshooting

Make sure the Shuttle dependencies are at latest and in line with your cargo-shuttle version otherwise the web service may error out.

If there are any other issues, feel free to open an issue!