Skip to content

mohamedsayedibrahim/node_api_rest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Credits public REST API

How to get source code.

  • clone repository and enter repository root folder
  • update submodule(s) by executing in repo root directory: git submodule update --init --recursive

How to build and run in Windows

  • 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

How to build and run in Ubuntu 18.04

  • 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"

About

Credits core node public REST API

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.9%
  • C# 6.1%
  • HTML 0.8%
  • CSS 0.6%
  • API Blueprint 0.5%
  • Python 0.1%