Monday, February 10, 2014

Node.js is fun

I have been playing with Node.js for few days and really love it. Trying to build a prototype website with workflows. 

Use case:



  • log into the system
  • upload dataset with supported format (fastq, sam/bam, vcf, bed. etc)
  • describe the dataset
  • choose components/node, each node is a independent operation
  • connect components with edges as DAG (directed acyclic graph)
  • fine tune each component if necessary (add/remove/change parameter settings)
  • execute the flow
  • monitor the progress (check, terminate, pause)
  • check out the output of each component and last result
  • save the flow for future use, share, publish.


#download the NoFlo.js flow demo
$git clone https://github.com/noflo/dataflow-noflo.git flow

$cd flow

$npm install

$grunt build

#start a simple http server to serve the contents
$python -m SimpleHTTPServer

#You may see a log message like this:
#Serving HTTP on 0.0.0.0 port 8000

Now start a browser like Chrome, type in 

"192.168.1.2:8000/demo/" 

#192.168.1.2 is my ip address. YMMV.

You will see a very nice dataflow graph like this:





You can add/delete/drag/move nodes and edges. Cool!



1 comment:

  1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Front end developer learn from Node JS Online Training from India . or learn thru Javascript Online Training from India. Nowadays JavaScript has tons of job opportunities on various vertical industry. ES6 Online Training

    ReplyDelete