nodus-ponens
A light, full-stack framework for running high-level reasoning and cognitive science experiments in Node.js.
Modifications
- 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
- Fixed logging errors (caught by J. Korman)
Installation
$ npm install -g shelljs
$ npm install nodus-ponens
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:
$ 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:55152
.
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 = 55152;
function setupStimuli(PID)
{
return stimuli;
}
np.loadStimuli = setupStimuli;
np.launchStudy();
License
(c) 2017 Sangeet Khemlani [http://sangeet.khemlani.net/][skhemlani], Creative Commons License.