Server Setup¶
Running the server in the foreground¶
start mongodb on localhost and standard port
start a celery worker
$ celery worker --config=bamboo.config.celeryconfig
start the server
$ python ./scripts/run_server.py
Running the server as a daemon¶
start mongodb on localhost and standard port
- create a user named ‘bamboo’, with home directory
/home/bamboo
- create a virtualenv using virtualenvwrapper called ‘bamboo’
- place the bamboo root directory in
/var/www/bamboo/current
start the daemon using:
$ /var/www/bamboo/current/scripts/bamboo.sh start
stop the daemon using:
$ /var/www/bamboo/current/scripts/bamboo.sh stop
Example Usage¶
On your local server¶
start the bamboo server as above, then
run the example basic commands
$ ./scripts/commands.sh -l
make requests to your local server
$ curl -X POST -d "url=http://formhub.org/mberg/forms/good_eats/data.csv" http://localhost:8080/datasets
Global Configuration Notes¶
- Summarization on factor columns is disallowed based upon the number of
unique entries. This is controlled by a parameter in the
core/summary
module.