Giter VIP home page Giter VIP logo

visual-ddf's Introduction

Installation

You will need Node 4.x+ to run vddf-server properly.

  • Use npm install to install all the dependencies.
  • Run ./scripts/install_adaviz.sh to clone and compile adaviz.
  • Run npm run dev to start vddf-server on port 5001.

Chrome Extension Development

Chrome extension is auto built when you run npm run dev. You can load the extension from build/chrome.

Important: in development mode, you will need to configure the extension to use local vddf-server. Please visit the Chrome Extension page, then click on Options link and set VDDF Server to http://localhost:5001.

Deployment

  • Run npm run build to build all assets for production
  • Run NODE_ENV=production npm start to start server

By default, vddf-server will use the configuration provided in config.json, you can also override the config file with CONFIG_FILE environment variable.

For production environment, you should switch storage from sqlite to mysql. You can do it by edit the database section in config.json. Below is an example for configuration with mysql:

...
  database: {
    client: 'mysql',
    connection: {
      host     : '127.0.0.1',
      user     : 'your_database_user',
      password : 'your_database_password',
      database : 'myapp_test'
    }
  }
...

For some linux distro, you may need to install libfontconfig to make phantomjs works.

Testing with BigApps

  • Check out branch visual-ddf-integration in BigApps
  • Visit BigApps, then use SQ/SQL to create any chart.
    • Click on the menu icon, then choose Export.
    • BigApps will give you the embeded code for the vDDF.
  • Chart rendered by codecell is also exportable.

Khang test

visual-ddf's People

Contributors

nqbao avatar khangich avatar

Stargazers

Hai-Anh Trinh avatar

Watchers

Hai-Anh Trinh avatar Tri Le avatar  avatar Christopher Nguyen avatar Khoa  avatar James Cloos avatar Thang Tran avatar Nhan Vu avatar Phan Hong An avatar  avatar  avatar  avatar Taejin Chun 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.