title: Starting out with noflo, running it from nodejs
body: <p>I got a simple noflo example running <em>from noflo</em>. But I'm having no luck figuring out how noflo should work with node and other code.</p>
  
  <p>At first I had this fbp file:</p>
  
  <pre><code># In the graph we first need to define the nodes and the connections between them
  Read(filesystem/ReadFile) OUT -&gt; IN Display(core/Output)
  
  # Start off the graph by sending a filename to the file reader
  #'package.json' -&gt; IN Read
  </code></pre>
  
  <p>I tried: <code>noflo.loadFile(filepath, nodedir, function(graph)</code></p>
  
  <p>This works and prints to the console. 
  But if I omit the last line in the fbp, that feeds the <code>package.json</code> parameter, I found no way of running the graph.</p>
  
  <p>Is there a guide somewhere on how to use noflo from nodejs code and not from command-line?</p>