Debian Codegraph @

tests/niminaction/Chapter3/ChatApp/readme.markdown

raw
1 # The ChatApp source code
2
3 This directory contains the ChatApp project, which is the project that is
4 created as part of Chapter 3 of the Nim in Action book.
5
6 To compile run:
7
8 ```
9 nim c src/client
10 nim c src/server
11 ```
12
13 You can then run the ``server`` in one terminal by executing ``./src/server``.
14
15 After doing so you can execute multiple clients in different terminals and have
16 them communicate via the server.
17
18 To execute a client, make sure to specify the server address and user name
19 on the command line:
20
21 ```bash
22 ./src/client localhost Peter
23 ```
24
25 You should then be able to start typing in messages and sending them
26 by pressing the Enter key.