Link to home
Start Free TrialLog in
Avatar of mike99c
mike99c

asked on

How to install NodejS to run a JavaScript application

I am familiar with JavaScript and JQuery. However I need to run some code for an application called OneFlow which is used for submitting order details. The script is in GitHub here:
https://github.com/Oneflow/oneflow-sdk-js

I wish to run submit-order.js. However it uses the command "require" at the top which I understand is part of NodejS.

Can someone please explain the simplest way to run this script and import NodejS? WIth JQuery it is simply a matter of referencing the latest JQuery file. Can I do something similar for NodejS?

Incidentally I need to run this on a Windows 2008 server.
Avatar of Siva Prasanna Kumar
Siva Prasanna Kumar
Flag of India image

First download and install Node js from: https://nodejs.org/en/download/

Get 64 bit version as it's windows server you are targeting,

Then install Git so that you can check out the above GIT project, else you can download as a zip and proceed but future changes on that project won't reflect unless its a GIT project.

It's a little odd that this module has zero documentation on the GIT site, any way this is how you install this for Node from with in the above cloned project / git folder.

npm install oneflow-sdk-js

Open in new window


There after it's just standard Node js which is nothing but javascript executed on server side, you can use Jquery or any other familiar javascript lingual like coffee js to consume your SDK,

It's surprising that this module has zero documentation even in Node registry, I think you can request them to update.

https://www.npmjs.com/package/oneflow-sdk-js

Just adding this link here if in case you want to configure your IIS server and Node Js to work together:

https://admin-ahead.com/blog/node-js-installation-windows-2008-r2-server/
Avatar of mike99c
mike99c

ASKER

Thanks Siva,

Forgive me if this is not too clear for me but you have written some instructions and some comments as well which has confused me. Can you please rewrite this again with exact steps of EXACTLY what I need to do without any comments.
ASKER CERTIFIED SOLUTION
Avatar of Siva Prasanna Kumar
Siva Prasanna Kumar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial