This Project contains a Phyton gRPC Server, a NodeJS Client and a C# Client.
- Install Python and pip https://www.python.org/downloads/
- In "python server" Folder run this to install requirements: py -m pip install -r requirements.txt
- Run Server with: python server.py
- Enjoy
- Install C# https://visualstudio.microsoft.com/de/vs/community/
- Get the ClientLibrary and the c# Client.
- Make sure all the packages (Google.Protobuf, Grpc.Net.Client, Grpc.Tools) are really included.
- Run ClientLibrary one time.
- Check that ClientLibrary is referenced in c# Client (would be visible in Waterlevel.csproj)
- Run C# Client
- For fun: The method "GetLastDayToUnix()" in the Class "RequestHandler" sets the beginning timestamp. e.g. Uncomment line 72 oder change line 73 to see different time spans.
- Install Node https://nodejs.org/en/
- Run: npm install
- Run client with: node client.js
- See under: localhost:8000 the website
- Enjoy