nodus-ponens
A light, full-stack framework for running high-level reasoning and cognitive science experiments in Node.js.
Bux fixes
- Added compatibility for Windows line-endings (caught by J. Korman)
- Added new fn, hideProblem(), in showStimuli
- Fixed checkbox bugs (caught by J. Korman)
- Fixed logging errors (caught by J. Korman)
- Eliminated references to external image files
- Fixed slider value error (caught by J. Korman)
- Fixed errors in documentation specification (caught by Z. Horne)
- Created hanging indentation for radio- and choice-tasks
Preliminary Setup
$ sudo npm install -g shelljs
Quick Start Guide
nodus-ponens is a full-stack framework for running high-level cognitive science experiments. It comes bundled with a fully-functional experiment template. To set the experiment up, run as follows:
$ mkdir temp
$ cd temp
$ npm install nodus-ponens
$ npm explore nodus-ponens -- npm run-script create-template
$ node main.js
The framework will launch a server-side monitoring console (in the terminal), and the experiment can then be viewed at http://localhost:55151
.
Usage
var path = require("path");
var fs = require('fs');
var staticDirectory = path.resolve("static");
var dataDirectory = path.resolve("data");
var participantIndex = 0;
var np = require("nodus-ponens")(participantIndex, staticDirectory, dataDirectory);
np.authors = "Authors";
np.experimentName = "Template1";
np.port = 55151;
function setupStimuli(PID)
{
return stimuli;
}
np.loadStimuli = setupStimuli;
np.launchStudy();
License
(c) 2018 Sangeet Khemlani, http://www.khemlani.net/, Creative Commons License.