- 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 test
can execute unit test
- Under
server
directory executecargo run
- This crate contains the server program designed to be executed in a known-ip server
- Under
server
directory, the fileusers.json
contains the list of registered user and their password - Once started, the server program does not need any interaction
- Under
client
directory executecargo run
- This crate contains the client’s binary
- The server’s IP address can be set in
config.yaml
underclient
directory - After started, the user can choose to register for a new account
y
or use and existing accountn
- After successfully validated/registered, user can type in message and send with
Enter
- Type in
:l
can fetch all online users