From c656da297096b3a7a9bcf1ec6c551b832c0f5dea Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Sat, 20 Jul 2024 23:40:07 -0400 Subject: [PATCH] code blocks --- readme.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 109a129..9bcab4f 100644 --- a/readme.md +++ b/readme.md @@ -11,24 +11,37 @@ This started as a problem trying to play games with friends who are all on diffe With auto-reload: * [Install cargo-watch](https://github.com/watchexec/cargo-watch?tab=readme-ov-file#install) +Then + ```sh watch -i client -cx run ``` Without auto-reload: -* `cargo run` +```sh +cargo run +``` ### Client * [Install Trunk](https://trunkrs.dev/#install) -* `trunk serve --open` + +Then + +```sh +trunk serve --open +``` ## Build: ### Client -* `trunk build --release` +```sh +trunk build --release +``` ### Server -* `cargo build` +```sh +cargo build +``` -- * The server automatically serves the built client from `/dist` at `0.0.0.0:3030`