GithubHelp home page GithubHelp logo

akaitrade / node_api_rest Goto Github PK

View Code? Open in Web Editor NEW

This project forked from creditscom/node_api_rest

0.0 0.0 0.0 1.22 MB

Credits core node public REST API

C# 6.07% HTML 0.81% JavaScript 91.90% CSS 0.62% Batchfile 0.01% API Blueprint 0.46% Python 0.14%

node_api_rest's Introduction

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"

node_api_rest's People

Contributors

0xaae avatar akaitrade avatar cdmitry77 avatar darthvader312 avatar pvl1175 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.