czarny247 / sensor-network

just playing around with grpc. based on the recruitment task.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sensor-Network

NOTICE: It has been only tested on MacOS (macOS Catalina 10.15.7)

Setup

On MacOS

  1. Run ./scripts/mac_setup_dependencies.sh (if it won't work, then you probably must chmod +x /scripts/mac_setup_dependencies.sh first)

  2. Build: mkdir build && cd build && cmake ..

  3. Run (in separate terminals):

    • Sensors:
      • ./sensor-service --service=cpu-temp --addr=0.0.0.0:50051
      • ./sensor-service --service=cpu-usage --addr=0.0.0.0:50052
    • Platform:
      • ./platform-service

    Or alternatively use scripts/mac_run_network.sh

On Linux

  1. Install needed prerequisites: protobuf and grpc. Since it is a C++ project, please follow the installation guide for this language.

...And rest of steps are similar to MacOS

About

just playing around with grpc. based on the recruitment task.


Languages

Language:C++ 62.2%Language:CMake 23.2%Language:Shell 14.6%