Skip to content

falafe1y/TcpJsonClientServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This project is an interview task, no more

Requirements

  • C++ 17
  • cmake
  • Boost.Asio
  • nlohmann JSON library

Installation

First, you need to go to the working directory and install this repository via HTTPS:

$ git clone https://github.com/falafe1y/TcpJsonClientServer.git

or SSH:

$ git clone [email protected]:falafe1y/TcpJsonClientServer.git

Go to the directory TcpJsonClientServer and install nlohmann library:

$ cd TcpJsonClientServer/
$ git clone [email protected]:nlohmann/json.git

If you did everything correctly, the structure of your project should be as follows:

- client.cpp
- CMakeLists.txt
- json/
- README.md
- server.cpp

Next, run this list of commands:

$ mkdir build
$ cd build
$ cmake ..
$ make

If everything is done correctly, two executable files will appear in the build directory: client and server. You need to open two terminals and run the server on the first terminal, and the client on the second

$ ./server
$ ./client

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published