From c511c31fe25045b46a57b11201704ff55207e808 Mon Sep 17 00:00:00 2001 From: Arnaud Bailly Date: Thu, 10 Oct 2024 17:27:35 +0200 Subject: Instructions to build server --- rust/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'rust') diff --git a/rust/README.md b/rust/README.md index f7148d9..7dfc03b 100644 --- a/rust/README.md +++ b/rust/README.md @@ -22,3 +22,21 @@ The interaction flow is simple: * If the client fails to answer, or answers wrongly, the server keeps sending the same request * If the client's answer is correct, the server sends another term to evaluate and awards 1 point to the client * The `/leaderboard` endpoint provides a crude HTML page listing each clients' current score + +## Building + +This software is written in Rust (sorry @xvdw), so one needs a Rust toolchain installed, then: + +``` +cargo build && cargo test +``` + +## Running + +To run the server: + +``` +cargo run --bin server +``` + +There are `--port` and `--host` arguments should one want to change the defaults `127.0.0.1:8080` -- cgit v1.2.3