# Node.js
This guide assumes you have installed and configured Node.js/NPM (opens new window).
Open a shell/command prompt with Node configured in the path.
Navigate to a new or existing working directory.
Perform a global installation first (this installs some libraries using node-gyp):
npm install cassproject
Next, in a script or the node interactive shell:
require("cassproject"); EcRemote.async = false; // This will force code to run synchronously.
To test things out, paste the following:
EcFramework.get( "https://sandbox.cassproject.org/api/custom/data/schema.cassproject.org.0.2.Framework/ce4c0e41-f24c-407d-95af-047bfee429bf", function(framework) { console.log(framework.name); }, function(error) { console.log(error); } ); EcCompetency.get( "https://sandbox.cassproject.org/api/custom/data/schema.cassproject.org.0.2.Competency/onet:1.A.1", function(competency){ console.log(competency.name); }, function(error){ console.log(error); } );
If you get the names output to the console, you’re ready to go. Check out the other guides for more information.
For more, check out the JavaScript Tutorial.
← JavaScript Java →