Giter Site home page Giter Site logo

semmypurewal / js-multigraph Goto Github PK

View Code? Open in Web Editor NEW

This project forked from multigraph/js-multigraph

0.0 1.0 0.0 33.84 MB

I was a core contributor to Multigraph from 2012-2014

License: MIT License

JavaScript 99.81% Perl 0.13% CSS 0.03% HTML 0.03%

js-multigraph's Introduction

Multigraph

For more information about using Multigraph, see http://www.multigraph.org.

Development

To work on the Multigraph code, prepare your computer by installing the required dev tools:

  • npm
  • nodejs
  • browserify (sudo npm install -g browserify)
  • uglify-js (sudo npm install -g uglify-js)
  • jasmine-node (for running the unit tests, sudo npm install -g uglify-js)

These tools are not needed for simply viewing Multigraph graphs, but they are needed for working on the Multigraph code. (The only thing needed for viewing a graph is a browser).

Then, to obtain and work with the code, use the following steps.

Clone the repo

git clone [email protected]:embeepea/js-multigraph

Initialize the git submodules

git submodule update --init --recursive

Install the npm dependencies

npm install

Run the unit tests from the command line

npm test

Build the bundled multigraph.js file

npm run build

Update and run the unit tests in a browser

npm run build-tests

After doing this, browse spec/index.html to run the tests in the browser.

Viewing the graph tests in a browser

Browse spec/graphics/index.html.

Adding a new graph test

Create a new *.xml file in spec/mugl, and optionally edit spec/mugl/tests.js; see the comments in spec/mugl/README.md for details. After adding a new *.xml file and/or editing spec/mugl/tests.js, run the command

npm run build-graph-tests

to update the tests, then browse spec/graphics/index.html.

Build everything (bundled and minified, with and without JQuery):

npm run build-all

js-multigraph's People

Contributors

cadoughe avatar dbetke avatar embeepea avatar frimmel avatar henhouse avatar semmypurewal avatar

Watchers

 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.