noflo-ui + noflo-nodejs local install

302 views
Skip to first unread message

Chad Dombrova

unread,
May 9, 2015, 2:47:31 PM5/9/15
to flow-based-...@googlegroups.com

Hi all,
I’m trying to get noflo-ui + noflo-nodejs running from a local install and I’m stuck. I’ve gotten this working once before, but no dice this time.

This is what I’m doing to get started:

setup some global installs:

npm install -g n
npm install -g bower
npm install -g grunt-cli
sudo n 0.10  # newer versions cause install issues with noflo-ui

build and start the UI:

mkdir noflo
cd noflo

git clone https://github.com/noflo/noflo-ui
cd noflo-ui
npm install
bower install
grunt build
python -m SimpleHTTPServer

from a separate terminal, start the node.js runtime:

cd noflo
npm install noflo
npm install noflo-nodejs
npm install noflo-core
./node_modules/.bin/noflo-nodejs-init --user my-UUID --host localhost --port 5555 --label "Node Runtime"
./node_modules/.bin/noflo-nodejs

this prints out:

NoFlo runtime listening at ws://localhost:5555
Using /Users/chad/dev/noflo for component loading
Live IDE URL: http://app.flowhub.io#runtime/endpoint?protocol%3Dwebsocket%26address%3Dws%3A%2F%2Flocalhost%3A5555
Registered with Flowhub. The Runtime should now be accessible in the UI

So, everything looks good so far.

Next I open a chrome tab to http://localhost:8000/index.html

On my Noflo-ui home page I’m logged in as my user, and I see a wasteland of previous graphs and runtimes which I’m unable to delete or inspect in any way (but that’s a whole separate issue). I see my newly registered “Node Runtime” listed under the “Runtimes” section and I click on it. The top of the page says “Loading” and spins infinitely. So, I skip that and go back and click "Create Project".  I choose Node.js as the runtime. This widget notes that I have 3 node.js runtimes. This is because I am unable to remove previous runtimes (I’m also not able to see them if they’re not running, but I can’t remember what port they were configured on or what their UUID is, so, yeah, chicken-and-egg).  I am taken to the graph page (http://localhost:8000/index.html#project/wtf/wtf%2Fmain). In the upper right-hand corner it says “Select Runtime”, so I click on that.  I choose “Node Runtime”, the page says “Loading” for a moment, and then I’m right back where I started, with the upper right-hand corner asking me to “Select Runtime”. Back at the terminal where I launched noflo-nodejs nothing new has printed out.

Can anyone get me unstuck?

Thanks,
chad

Mrinal Dharmik

unread,
Jun 20, 2018, 6:28:05 AM6/20/18
to Flow Based Programming
Hey Buddy!
Did the issue get resolve. I have doubts as to how to run noflo-nodejs and noflo-ui together
Reply all
Reply to author
Forward
0 new messages