Giter Site home page Giter Site logo

jbudding / nodeflow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qris/nodeflow

0.0 2.0 0.0 74.75 MB

A JavaScript Netflow/IPFIX collector and graphing tool

License: GNU General Public License v3.0

JavaScript 73.75% Makefile 0.04% HTML 25.86% Shell 0.10% CSS 0.25%

nodeflow's Introduction

NodeFlow

A JavaScript Netflow/IPFIX collector and graphing tool.

Written in Node.JS, to make use of Node-Netflowd, but runs in the browser with Browserify. Designed according to the principles discussed in Cross platform JavaScript with Browserify โ€“ Sharing Code Between Node.js and the Browser.

Installation

To install dependencies on a freshly checked-out project:

npm install

Many commands are run through grunt, which you can either install globally:

npm install -g grunt

Or add to your PATH:

export PATH=`pwd`/node_modules/grunt-cli/bin:$PATH

Or run using its relative path:

node_modules/grunt-cli/bin/grunt

Running the interactive client

To run the built-in RabbitMQ client and WebSocket server, to receive messages from pmacct and forward them to connected in-browser clients:

grunt server

To lint and start the server:

grunt

After starting the server, you can connect to this server using your browser, and see the Netflow traffic graphed.

Running tests

You can run the tests for the server-side Node.js module Server.js from the command line with:

bin/buster-test

You can run the tests for the client-side browser module Client.js from the command line with:

grunt test

Note: you need PhantomJS 2.0 for the tests to pass, but npm currently installs 1.9.7 instead, which doesn't work. To upgrade your npm installation of PhantomJS to 2.0:

  • Download it here and unpack the ZIP file (or just look in the phantomjs_2 directory)
  • Find the correct PhantomJS binary for your system
  • Copy it to node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/lib/phantom/bin/phantomjs, replacing the PhantomJS 1.9.7 binary installed by grunt-contrib-qunit.

You can also run the tests in a web browser by starting the dummy server:

grunt connect:server:keepalive

and then open the test suite in your browser.

nodeflow's People

Contributors

qris avatar

Watchers

James Cloos avatar Jeff Buddington avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.