noflo-ui | NoFlo Development Environment
kandi X-RAY | noflo-ui Summary
kandi X-RAY | noflo-ui Summary
The NoFlo Development Environment is an offline-capable, client-side web application that helps users to build and run flow-based programs built with FBP compatible systems such as NoFlo, MsgFlo, imgflo and MicroFlo. The NoFlo Development Environment is available under the MIT license. This project was made possible by 1205 Kickstarter backers. Check the project ChangeLog for new features and other changes.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Load the graph .
- Load the graph .
- Sends the given graph to the client .
noflo-ui Key Features
noflo-ui Examples and Code Snippets
Community Discussions
Trending Discussions on noflo-ui
QUESTION
I have a noflo graph.json.
My basic use case is
- Generate graph.json using noflo-ui
- Convert graph.json into a javascript(or node module) file using any means possible.
- run the file in my own node express application.
I want to see the final compiled code in javascript. I have been searching the documentation and source code. I just couldn't locate it.
...ANSWER
Answered 2018-Jul-19 at 20:14NoFlo doesn't compile graphs to JavaScript, but instead has a runtime that wires the graph's components up on demand.
If you want to expose the graph as a JavaScript function, you can use noflo.asCallback.
QUESTION
I'm pretty new to noflo, so this is probably due to me doing something dumb.
I'm getting an issue when trying to start a noflo graph from the noflo-ui. Basically I get a EADDRINUSE error (the port is in use) from the first xpress/Server node in my graph, I believe. I'm running the ui locally if that matters (I don't think it should).
Usually, if I was running a normal Express service, I would just kill the 'runaway' process which is hogging the port, but I'm having problems finding it. I've tried things like "netstat -p tcp | grep " and "ps -ef | grep " to no avail.
I've also tried a couple of 'noflo' things, which may or may not be a good idea. 1) First I tried deleting the browser database completely (I'm still not 100% sure how this relates to the runtime environment and have tried variations of passing parameters to the noflo-nodejs command and using the json config created using the noflo-nodejs-init). 2) Second, I created a new graph which uses a different port. By stopping/restarting the new graph in the ui and testing the expected endpoints through postman, I have realised that actually the process of starting seems to start an xpressServer for both the new and the old port, so I can do a GET on both http://localhost:8000/hello and http://localhost:8001/hello and get 'hello' back.
Could anyone tell me what I've done wrong and the best approach for resolving it if possible.
NOTE: I did try restarting my Mac which did not seem to help initially either, so I can only assume chrome is caching something I have missed perhaps ... (a guess). Having done a hard reboot this morning and making sure all my apps are closed, this does seem to have resolved itself but I would still like to understand what is going on, so I don't end up in this situation again.
Thanks
...ANSWER
Answered 2018-Jan-18 at 11:45The noflo-xpress Server component frees up its port(s) at the component teardown stage.
This means that to free up the port you have to either:
- Stop the network execution (causing teardowns to be called) using
network.stop()
(or via the "pause button" in Flowhub) - Stop the NoFlo runtime process where you run noflo-xpress
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install noflo-ui
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page