Pushkin is a scalable ecosystem for psychological surveys and tests.
It consists of 5 key parts
- You are somewhat familiar with isntalling programs and understand what your terminal is and how to use it.
- You have access to a text editor like sublime/notepad++/etc.
- Docker is installed on your machine
- docker-compose -f docker-compose.debug.yml up
Pushkin makes adding a cron job easy,
- just add the file script you want ran in games-with-words-cron/scripts.
- Add a line calling that file in games-with-words-cron/crontab
Each one of those files has access to the environment variables created in the docker file.
DB Connection is available as DATABASE_URL
and the message queue as AMPQ_ADDRESS
.
Right now we only support python and node.js cron tabs. feel free to modify the Dockerfile
to add a different environment you may need.
Docs can be created by running npm install, then npm run docs.
JS Docs are available for this project, all the document files are located in your pushkin/docs
folder. For more information about JS Docs, please visit JS Docs.
You could add a piece of Js Docs anywhere for any functions through out the whole project by using this syntax :
/**
* creates a new controller with specified name
* @method ControllerManager#generate
* @param {String} name - name of controller to create
* @memberof ControllerManager
*/
This will get compiled down in your pushkin/docs
folder and available for view. Please read the Compile section of this readme for more info.
Please feel free to modify jsdoc.conf.json
located in your main pushkin
folder. This config file handles the main configuration of JS Docs compile settings. You could include or exclude any additional source folders for JS Docs to look in or ignore by editing the include
and exclude
section of this JSON file. You could also include a README as the home page of your js docs by adding README.md
in the include
section of this file. JS Docs looks for the first README.md it could find and make use of that.
After you've added/deleted/edited/changed any your JS Docs, you will have to recompile for the changes to apply.
- make sure you've all npm pacages installed in your 'pushkin' folder by executing
npm install
- execute
npm run docs
to compile - open up
pushkin/docs/index.html
to see your newly updated JS Docs
Josh DeLieuw of jspsych