Difference between revisions of "Nodejs Integration"

From Lianjapedia
Jump to: navigation, search
(Installing the Lianja Cloud Data Services module)
Line 13: Line 13:
  
 
==Installing the Lianja Cloud Data Services module==
 
==Installing the Lianja Cloud Data Services module==
 +
 +
The simplest way to use the Node.js module module is by creating a symbolic link using "npm link".
 +
 +
On Windows:
 +
 +
<code lang='bash'>cd C:\lianja\cloudserver\tenants\public\wwwroot\library\LianjaWebFramework\LianjaCloudDataServices\node\
 +
npm link
 +
</code>
 +
 +
On Linux:
 +
 +
<code lang='bash'>cd /opt/lianja/cloudserver/tenants/public/wwwroot/library/LianjaWebFramework/LianjaCloudDataServices/node/
 +
npm link</code>
  
 
==Using the Lianja Cloud Data Services module in Node Applications==
 
==Using the Lianja Cloud Data Services module in Node Applications==

Revision as of 04:04, 22 April 2024

**Under Development**

Node.js is an open-source and cross-platform JavaScript runtime environment. It is a popular tool for almost any kind of project!

Node.js runs the V8 JavaScript engine, the core of Google Chrome, outside of the browser. This allows Node.js to be very performant.

A Node.js app runs in a single process, without creating a new thread for every request. Node.js provides a set of asynchronous I/O primitives in its standard library that prevent JavaScript code from blocking and generally, libraries in Node.js are written using non-blocking paradigms, making blocking behavior the exception rather than the norm.

Lianja Cloud Data Services Node module

Lianja Cloud Server includes a Node.js module lianjaclouddataservices enabling Node.js applications to connect to a local or remote Lianja Cloud Server and perform a variety of operations.

Installing the Lianja Cloud Data Services module

The simplest way to use the Node.js module module is by creating a symbolic link using "npm link".

On Windows:

cd C:\lianja\cloudserver\tenants\public\wwwroot\library\LianjaWebFramework\LianjaCloudDataServices\node\
npm link

On Linux:

cd /opt/lianja/cloudserver/tenants/public/wwwroot/library/LianjaWebFramework/LianjaCloudDataServices/node/
npm link

Using the Lianja Cloud Data Services module in Node Applications