greptile fa8ecdac4f cleanup: remove typo and git merge info from documentation (#188) пре 3 година
..
src 5d63d86083 chore: cleanup пре 3 година
Cargo.toml 3904492f7c dchat: add libsqlite3-sys dependency to Cargo.toml пре 3 година
README.md fa8ecdac4f cleanup: remove typo and git merge info from documentation (#188) пре 3 година
dchat_config.toml 6134dcdad7 p2pnet: inbound and external addresses vectorized пре 4 година

README.md

Dchat

A demo chat program to document DarkFi net code. Tutorial can be found in the DarkFi book.

Step 1: Spin a seed node

cd darkfi
make BINS=lilith
./lilith

You should see the following output:

Config file created in '"/home/USER/.config/darkfi/lilith_config.toml"'. Please review it and try again.

Add dchat to the config as follows, keeping in mind that the port number must match the seed specified in Alice and Bob's settings (see: main.rs).

[network."dchat"]
port = 50515
localnet = true

Now run lilith:

./lilith

Step 2: Using dchat

make BINS="dchat"

Run dchat as an inbound node:

./dchat a

Run dchat as an outbound node:

./dchat b

Logging

Dchat creates a logging file for the inbound node at /tmp/alice.log. Logging for the outbound node is found at /tmp/bob.log.

Tail them like so:

tail -f /tmp/alice.log

Or use multitail for colored output:

multitail -c /tmp/alice.log