# Node.js

This guide assumes you have installed and configured Node.js/NPM (opens new window).

  1. Open a shell/command prompt with Node configured in the path.

  2. Navigate to a new or existing working directory.

  3. Perform a global installation first (this installs some libraries using node-gyp):

    npm install cassproject
    
  4. Next, in a script or the node interactive shell:

    require("cassproject");
    EcRemote.async = false; // This will force code to run synchronously.
    
  5. 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);
        }
    );
    
  6. 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.