Skip to content
Mike Dewar edited this page Mar 17, 2014 · 1 revision

One useful way of exploring streamtools is via its examples. You can find them on github at https://github.com/nytlabs/streamtools/tree/master/examples. To use them you need to import them into streamtools. For this, you need to have an already running streamtools instance - see the install instructions in the README.

One way to import the examples goes as follows:

  1. Open a terminal.

  2. Download the example to the current directory. You can do this however you like. A quick wget will suffice:

     wget https://raw.github.com/nytlabs/streamtools/master/examples/citibike.json
    
  3. Import the pattern. To do this you must use streamtools' import endpoint. Assuming you are running streamtools on the default port, run

     curl http://localhost:7070/import -d@citibike.json
    

    All this does is POST the citibike JSON file to the streamtools import endpoint. Now, if you visit your streamtools interface you should see live citibike data!

Clone this wiki locally