Skip to content

A simple Fullstack web app example built with Axum, Htmx, and Shuttle.rs

License

Notifications You must be signed in to change notification settings

amiller68/fruit-jokes

Repository files navigation

Fruit Jokes!

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!

Requirements

Local development and usage

Run code checks:

make check

Run tests:

make test

Prepare SQLX queries:

./bin/queries.sh

Run locally:

./bin/run.sh

Deployment

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!

CI/CD

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.

About

A simple Fullstack web app example built with Axum, Htmx, and Shuttle.rs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published