rkgk/README.md

39 lines
1.2 KiB
Markdown
Raw Normal View History

2024-08-24 20:09:52 +02:00
# rakugaki - digital multiplayer graffiti
rakugaki is a multiplayer paint canvas with programmable brushes!
At the heart of rakugaki is the _brush_ - a little program for manipulating pixels on a _wall_.
Brushes are written in a tiny programming language called _haku_.
## I wanna try it out!
Since the app is currently in very early alpha stages, there's no public instance at the moment.
You're free to spin up a server for your friends though!
Here's the setup procedure for production instances.
```sh
# As of writing this, 1.81 is not yet released, so we have to use Rust nightly.
rustup toolchain install nightly-2024-08-11
rustup default nightly-2024-08-11
rustup target add wasm32-unknown-unknown
# We use `just` to wrangle the process of building the client-side WebAssembly and the server.
cargo install just
2024-08-24 20:09:52 +02:00
# Now it's time to run the backend!
2024-08-24 20:09:52 +02:00
just port=8080 profile=release
```
2024-08-24 20:09:52 +02:00
Then, you can connect to `localhost:8080` to see the app in action.
2024-08-24 20:09:52 +02:00
For development, I recommend using `cargo watch` for live reloading.
2024-08-24 20:09:52 +02:00
`just` defaults to a sensible development configuration.
If you need to override the port, use the `port` variable as shown above.
2024-08-24 20:09:52 +02:00
```sh
cargo install cargo-watch
cargo watch -- just
```