A (bad) chat app using websockets, made with Axum
and SvelteKit
.
It uses SvelteKit to generate static files, served by the backend.
I made this project solely for the purpose of learning Axum and how websockets work and not a lot of thought was put into the frontend, but I think it's half-decent.
It is deployed to shuttle.rs
: https://rust-chat.shuttleapp.rs/!
You need to have Rust, npm and cargo-shuttle installed and set up.
In the frontend
directory, run
npm run build
Which will create a build
folder in the root.
Then, you can use
cargo shuttle project start
and
cargo shuttle run