From eb654a52e1869fce77aca45b75a3f9000fb679dc Mon Sep 17 00:00:00 2001 From: One <43485962+c-git@users.noreply.github.com> Date: Fri, 19 Jul 2024 18:35:02 -0400 Subject: [PATCH] fix: add cd command before run command Requires the static folder be present --- websockets/chat/README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/websockets/chat/README.md b/websockets/chat/README.md index ab53ab9..ce743a5 100644 --- a/websockets/chat/README.md +++ b/websockets/chat/README.md @@ -22,7 +22,12 @@ Fancy shiny features: 2. [http://localhost:8080/count/](http://localhost:8080/count/) is a non-websocket endpoint and will affect and display state. -To start server use command: `cargo run --bin websocket-chat-server` +To start server use the following + +```sh +cd websockets/chat +cargo run --bin websocket-chat-server +``` ## WebSocket Browser Client @@ -36,6 +41,3 @@ Create a venv environment `python3 -m venv venv` Launch venv environment `source ./venv/bin/activate` Fetch the needed python libraries `pip3 install -r requirements.txt` Then start client as `./client.py` - - -