psyexpbe
v0.0.1
Published
Simplest possible backend for psychological (or any) experiment
Downloads
4
Readme
psyexp
psyexp
is a backend for psychological experiment. The frontend can be built
in any language or tools that can use a HTTP API.
Setup
- Setup a AWS S3 bucket and then create
setnev
by copyingsetenv.templte
and updating it. - Do
source setenv
- Run
node psyexp.js help
for help.
Start the server with node psyexp.js start
. Test that it is running with:
curl -d 'Test!!' -X POST http://localhost:3000/status
Development using psyexp
Examples for how trails are stored and listed using curl
(as an illustration):
Save data in an experiment. Make sure trail_no is unique or it will be overwritten (any random number will do):
curl -d 'Whatever you want to save (CSV, JSON etc.)' -X POST http://localhost:3000/<experiment UUID>/trail_no
List trials that have been stored:
curl http://localhost:3000/<experiment UUID>
Fetch the data for a trial:
curl http://localhost:3000/<experiment UUID>/trail_no