Simple Server for a Chat App.
- Install the toolchain
apt install build-essential ninja-build cmake
- Intall dependencies
apt install libprotobuf-dev protobuf-compiler
Currently Protobuf is the only dependency requires manual installation. Others will be available when configuring the CMake.
- Configure CMake and Build
git clone https://github.com/yezhizi/NetChat.git
mkdir -p NetChat/build
cd NetChat/build
cmake -GNinja ..
cmake --build .
Configuring CMake will automatically download and install the dependencies. Please make sure you have a working Internet connection.
The binary will be located at NetChat/bin/NetDesign2-Server
.
- Run the binary
cd ..
./bin/NetDesign2-Server