A server/client duo allowing you to compile your local Protocol Buffer files on a remote host (e.g. Raspberry Pi, virtual server, etc)
NOTE: Neither the server or client were built with extensibility, maintainability or readability in mind. This is merely a tool to aid the development of another one of my projects.
If you encounter any bugs or would like to see a feature added then please open an issue.
To download the server or client see here.
- Windows 10 or better (probably compatible with lower versions but not tested)
- .NET 4.6 or better
To install the client:
- Download the client release.
- Extract contents of the archive to preferred location (E.g. C:\Program Files(x86)\)
- Optionally: Right click > Send To > Desktop to create a shortcut on your desktop.
- Linux environment (tested on Raspbian and Ubuntu)
- Google's Protocol Buffer compiler installed. (tested on 3.5.1)
- tofrodos package installed (
sudo apt install tofrodos
) - The release has a self-contained ASP.NET Core 2.0 runtime so you don't need to install the runtime separately.
To install the server:
- Download the server release.
- Transfer the archive to your target machine if necessary.
- Extract the contents of the archive to preferred location (E.g. /opt/)
To launch the server:
-
Navigate to your install
-
Execute:
./RemoteProtobufCompilerServer --urls http://HOST:PORT &
Adjust
HOST
andPORT
to your configuration.Note: If you execute this via SSH, when you logout it will stop.
I have found that the simplest (not the best) way to launch the server on boot is:
-
Add the following to your
/etc/rc.local
file./INSTALL_PATH/RemoteProtobufCompilerServer/RemoteProtobufCompilerServer --urls http://HOST:PORT &
Adjust
INSTALL_PATH
,HOST
andPORT
to your configuration.
The server was developed in a Linux environment using Visual Studio code and is therefore only compatible with a Linux environment. If you would like to see the server become compatible with Windows please open an issue.
- Newtonsoft.Json - On the client to serialise and deserialise locally saved settings.
- ASP.NET Core - On the server to create a web API.