- clone repository and enter repository root folder
- update submodule(s) by executing in repo root directory:
git submodule update --init --recursive
- enter the repo subdirectory WebApiNode\third-party\node_api\thrift-utils and execute batch file
thrift_gen_node.bat
- return to WebApiNode directory and open WebApiNode.sln in visual Studio
- build in Visual Studio
- publish in Visual Studio
- run from command prompt or intergate into IIS
- to prepare dotnet core 3.1: runtime + SDK + asp runtime, run
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-runtime-3.1
sudo apt-get install aspnetcore-runtime-3.1
sudo apt-get install dotnet-sdk-3.1
if you receive an error message similar to Unable to locate package aspnetcore-runtime-3.1, see the https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-manager-ubuntu-1804#troubleshoot-the-package-manager.
- enter the subdirectory WebApiNode/thirt-party/node_api/thrift-utils/
- generate node native API support files running
sudo ./thrift_gen_node.sh
- return to subdirectory WebApiNode/
- publish application by
dotnet publish -c Release -r ubuntu.18.04-x64
- copy application files from WebApiNode/CS.WebApi/bin/Release/netcoreapp3.1 wherever you want
- enter to application direcory and run (you may set desired port instead of 8080)
./CS.WebApi --urls="http://0.0.0.0:8080"