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 1/4] 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` - - - From d00c0f8d17732bacbbfaf5ab9753fdf6d16c69fa Mon Sep 17 00:00:00 2001 From: One <43485962+c-git@users.noreply.github.com> Date: Fri, 19 Jul 2024 20:20:52 -0400 Subject: [PATCH 2/4] chore: reword module docs for clarity --- websockets/chat/src/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/websockets/chat/src/server.rs b/websockets/chat/src/server.rs index 59bb200..fe0f795 100644 --- a/websockets/chat/src/server.rs +++ b/websockets/chat/src/server.rs @@ -1,5 +1,5 @@ -//! `ChatServer` is an actor. It maintains list of connection client session. -//! And manages available rooms. Peers send messages to other peers in same +//! `ChatServer` is an actor. It maintains a list of connection client sessions. +//! It also manages available rooms. Peers send messages to other peers in same //! room through `ChatServer`. use std::{ From 833ac97775e0d102a1a032361de3a68bf5f7a6c1 Mon Sep 17 00:00:00 2001 From: One <43485962+c-git@users.noreply.github.com> Date: Sun, 21 Jul 2024 06:10:49 -0400 Subject: [PATCH 3/4] Simplify wording --- websockets/echo-actorless/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websockets/echo-actorless/src/main.rs b/websockets/echo-actorless/src/main.rs index e40c7bd..8d29119 100644 --- a/websockets/echo-actorless/src/main.rs +++ b/websockets/echo-actorless/src/main.rs @@ -28,7 +28,7 @@ async fn echo_heartbeat_ws(req: HttpRequest, stream: web::Payload) -> Result Result { From 93cd646fba10d0d52ea1897c939848ab2dc3d24c Mon Sep 17 00:00:00 2001 From: One <43485962+c-git@users.noreply.github.com> Date: Sun, 21 Jul 2024 06:17:56 -0400 Subject: [PATCH 4/4] Grammar and spelling fixes --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 731e6d7..395a40b 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ - [Four in a Row - Server](https://github.com/ffactory-ofcl/fourinarow-server): An online version of the popular game four in a row, written in Rust on the server side and Flutter + Dart on the client. - [Nitro Repo](https://github.com/wherkamp/nitro_repo): An open source artifact manager. Rust back-end and Vue front-end. - [mCaptcha](https://github.com/mCaptcha/mCaptcha/): Proof of work based, privacy focused, libre CAPTCHA system. Crates used: `actix-web`, `sqlx`, `redis`, and `lettre`. -- [Zero2prod](https://github.com/LukeMathWalker/zero-to-production/): Source code of zero to production series [zero2prod.com](https://www.zero2prod.com). Paid book but some of the chapters is available online for free. The book compares and explains the chosen technologies, like Actix Web and SQLx. +- [Zero2prod](https://github.com/LukeMathWalker/zero-to-production/): Source code of zero to production book [zero2prod.com](https://www.zero2prod.com). Paid book but some of the chapters are available online for free. The book compares and explains the chosen technologies, like Actix Web and SQLx. - [Triox](https://github.com/Trioxidation/Triox): A free file hosting server that focuses on speed, reliability and security. - [binserve](https://github.com/mufeedvh/binserve): A fast, secure, and easy to set up static web server written on top of Actix Web with routing, templating, and various other features. - [Roseline](https://github.com/DoumanAsh/roseline.rs): A personal web site and discord & IRC bot to access simple SQLite database. Demonstrates usage of various Actix and Actix Web concepts. @@ -54,7 +54,7 @@ - [rayspace.dev](https://github.com/ryspc/rayspace.dev): Minimalist dev portfolio and blog implemented as a Rust-powered SPA, featuring GitHub OAuth, session management, static file serving, API endpoints, and SQLx integration. - [Blog with markdown rendering](https://github.com/gemini-15/blog-engine): Blog example built with Actix Web, diesel (with Postgres) and r2d2 rendering articles in markdown with metadata and a front-end with React. - [Rust, Angular, PostgreSQL and JWT Security](https://github.com/stav121/actix-angular-project-template): Boilerplate project that implements an Angular + Actix Web application with login and registration pages, that is pre-dockerized. -- [planters_cycle](https://github.com/grimm-integrations/planters_cycle): Another boilerplate fullstack appliction with identity system, prisma and NextJs. +- [planters_cycle](https://github.com/grimm-integrations/planters_cycle): Another boilerplate fullstack application with identity system, prisma and NextJs. ## Paid Resources