This tutorial shows how to configure the Visual Studio 2019 project to run the LEADTOOLS Cloud Services in Node.JS.
Overview | |
---|---|
Summary | This tutorial covers how to properly set up a 2019 Visual Studio project to run Node.JS LEADTOOLS Cloud Services. |
Completion Time | 5 minutes |
Platform | Node.JS |
IDE | Visual Studio 2019 |
Runtime License | Download LEADTOOLS |
If you have not used Node.js with Visual Studio before, be sure to review the resource below to allow for Node.js development in Visual Studio.
Additionally, in the Solution Explorer > Right-Click on the project name > select Properties and uncheck Start web browser on launch as that feature is not used in the tutorial projects.
Set the path to the Node.exe in your Visual Studio project. In the main menu go to Project > Properties > Node and in the Node.exe path: field add the path. For example: C:\Program Files\nodejs\node.exe
In Visual Studio, create a new Blank Node.js Web Application
project, delete the auto-generated code in the server.js
file and add the following required npm package:
axios
Run the project by pressing Ctrl + F5, or by selecting Debug -> Start Without Debugging.
In this tutorial, we covered the basic configuration steps to run a LEADTOOLS Node.JS tutorial. For additional details on specific LEADTOOLS Cloud Services Web API calls, refer to the LEADTOOLS Cloud Services home page.