This is a silly little example of using Axum + Htmx to implement a simple FullStack application, and how to develop locally and deploy with Shuttle.rs for quick prototyping.
See this page for a test deployment. Feel free to add some jokes!
- Rust & Cargo
- Shuttle
- Docker
Run code checks:
make check
Run tests:
make test
Prepare SQLX queries:
./bin/queries.sh
Run locally:
./bin/run.sh
You'll need to get an Api key if you want to deploy to Shuttle.rs. It's easy and free to get one :)
In order to deploy to Shuttle.rs run:
cargo shuttle deploy
Remember to ensure your repository isn't dirty, your code passes checks, and your migrations are properly version controlled!
This repository comes with workflows for deploying to Shuttle.rs from GitHub. These will run on pushing to main
if you set up the SHUTTLE_API_KEY
secret for GitHub actions in your repository.