Git Product home page Git Product logo

netvis-server's Introduction

NetVis Server

A Node.js application for a NetVis based frontend together with some sample data to provide an example for a quick start for own implementations.

What can it do?

  • Display different types of network relations between nodes.
  • Show detail descriptions for each node (if supplied) by clicking on the node.
  • Optimized for larger networks by showing related nodes only when requested.
  • Live-Edit feature: when changing the details of a node, those changes are sent to other clients via Websocket in real-time.
  • View-only version (without edit feature) works without a backend on every simple web server just by copying the files. Like here in github.

See the example below to see it in action.

Example

Screenshot - click to see it in action

Click image to see it live (though you cannot edit there because it only works statically)

Use with Docker

The simplest way to try this is to use Docker. Just run it on your local computer, by using the pre-built image:

docker run -it --rm -p 3000:3000 joschi64/netvis-server

You can even use own data by using a volume and set an environment accordingly:

docker run -it --rm -p 3000:3000 -e INIT_FILE=/server/init/data.json -v `pwd`/init:/server/init joschi64/netvis-server

This mounts an init folder from your local disk in a path inside the docker container and instructs the server to use the file inside (data.json) as the initialization of the network. In this case, a copy of this data is created on the first run, so it don't get any changes you do later in your data.

This behaviour can be modified by mounting a data volume into /server/data. If you change the files inside of this folder, these changes are at least used if you restart your container. This should be sufficient if you want to show different data sets but don't want to change the code.

docker run -it --rm -p 3000:3000 -v pwd/data:/server/data joschi64/netvis-server

Install and start server

If you do not want to use docker, or if you want to have more control over the code, you should install Node.js at least in version 8 and checkout the code.

Install the server with

git clone https://github.com/jschirrmacher/netvis-server.git

After that, install all dependencies:

npm install

then start the server:

npm start

or, if you want to change the code, the development server, which watches the source files and restarts when a change is recognized:

npm run start-dev

Then open http://localhost:3000 and see the example data in your browser

Parameters

If port 3000 is already occupied on your machine, or if you just like to use another port, simply set the environment before starting the server:

PORT=3001 npm start

netvis-server's People

Contributors

jschirrmacher avatar

Watchers

 avatar  avatar  avatar

Forkers

assistify

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.