Skip to content

Instantly share code, notes, and snippets.

@kastman
Last active August 29, 2015 14:14
Show Gist options
  • Save kastman/261098b96e879c513c11 to your computer and use it in GitHub Desktop.
Save kastman/261098b96e879c513c11 to your computer and use it in GitHub Desktop.
Clean Survana Install (for exporting only)

Install Survana for Exporting Responses

Prerequisites

  • Install Homebrew
  • ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Install node.js:
  • Note: The only current supported version is node 0.8 (0.10 breaks with some charset error).
  • brew install nvm
  • Note: Homebrew requires some setup for node, including mkdir ~/.nvm and adding NVM_DIR and sourcing nvm.sh to the .bash_profile. Follow the instructions under "==> Caveats" if you see them.
  • nvm install 0.8 && nvm use 0.8 or http://nodejs.org/download/
  • Install Survana
  • npm install –g survana
  • Note! This is not known to work now!

Download and install the export script

  • Install the exporter's dependencies:
  • easy_install xlsxwriter simplejson
  • Run the following commands:
  • curl -k https://raw.githubusercontent.com/vpetrov/survana-tools/master/export-responses > /usr/local/bin/export-responses
  • chmod a+x /usr/local/bin/export-responses
  • Test that the script is working - you should see usage options when you do the following:
  • export-responses -h

A more detailed install script for setting up a separate Survana Server instance is here: https://gist.github.com/kastman/10681539

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment