I thought that writing a little chess app would be a fun way to learn both HTMX and Shuttle-Rs.
Right now all the web app does is allow you to create a game, and view the pretty formatted FEN of said games, which is just starting position.
See https://krondor-chess.shuttleapp.rs/ for deployed version
- 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.