Skip to content

SurveyMan/surveyman.js

Repository files navigation

Build Status

Overview

surveyman.js is the browser runtime for the SurveyMan project. It is currently still tightly coupled with the jsonzied Survey from SurveyMan and the HTML produced by the Runner. See the docs for how these modules are used.

The gh-pages branch contains the last version current to the Runner repository. Features contained in the master branch may not work with the latest Runner version.

Usage

surveyman.js is not a SurveyMan UI. It implements a Javascript version of a subset of SurveyMan functionality. To see how this respository is used, clone the Runner repository and try running an example survey locally. This will produce some HTML in logs/<surveyid>_<your_survey_file_name>_<timestamp>.html. This HTML includes the jsonized survey and references to the contents of this repository. Click through the survey to see how it is executed.

To investigate this code locally, try running the following in node:

var globals = require("tests/globals.js");
var survey  = SurveyMan.survey.init(globals['wage_survey']);

Contributing

surveyman.js used to live with all the other SurveyMan code in the SurveyMan main repository. It has since been split out into its own repository. Testing was previously done in Clojure using Selenium.

About

The browser interpreter for a compiled surveyman program.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published