markmarkoh / datamaps

Customizable SVG map visualizations for the web in a single Javascript file using D3.js
http://datamaps.github.io
MIT License
3.78k stars 1.01k forks source link

make it easy to run the examples on the local machine #236

Closed macmania closed 8 years ago

macmania commented 9 years ago

any one want to work on making it easy to run the example on their local machine so that devs can play around w/ the test code?

it could just be as simple as ./run-examples.sh

workgena commented 9 years ago

I thought about that too. But, for me personnaly, it would be good to do:

  1. $ git clone https://github.com/markmarkoh/datamaps.git
  2. End simply drug&drop "example.html" in browser

Without any http-server or configuration. Additionally, would be great to have some "index.html" with links and explanation to every example. I will think about this later this week.

markmarkoh commented 9 years ago

How about having links to JSBin's of examples, like: http://jsbin.com/nutawiboci/1/edit?html,output ?

I like it because you can alter and mess with the code directly without having to event check the project out.

macmania commented 9 years ago

I think that'll be better, maybe we can add in the examples README.md on how to run the samples using jsbin.