diff --git a/README.md b/README.md index 731e6d71..395a40b2 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 diff --git a/websockets/chat/README.md b/websockets/chat/README.md index ab53ab9d..ce743a56 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` - - - diff --git a/websockets/chat/src/server.rs b/websockets/chat/src/server.rs index 59bb2006..fe0f7958 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::{ diff --git a/websockets/echo-actorless/src/main.rs b/websockets/echo-actorless/src/main.rs index e40c7bd6..8d29119e 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 {