code blocks
This commit is contained in:
parent
dac80deb7c
commit
c656da2970
1 changed files with 17 additions and 4 deletions
21
readme.md
21
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`
|
||||
|
|
Loading…
Add table
Reference in a new issue