- Install Rust: https://www.rust-lang.org/tools/install
- Cargo is required, it should be installed along with Rust
- When building with Cargo, it would automatically download dependencies
- Under root directory
cargo testcan execute unit test
- Under
serverdirectory executecargo run - This crate contains the server program designed to be executed in a known-ip server
- Under
serverdirectory, the fileusers.jsoncontains the list of registered user and their password - Once started, the server program does not need any interaction
- Under
clientdirectory executecargo run - This crate contains the client’s binary
- The server’s IP address can be set in
config.yamlunderclientdirectory - After started, the user can choose to register for a new account
yor use and existing accountn - After successfully validated/registered, user can type in message and send with
Enter - Type in
:lcan fetch all online users