You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vinícius Gusmão Pereira de Sá edited this page Jun 3, 2015
·
2 revisions
Initial Setup
It is recommended to run Barbante inside a virtualenv instance. Once virtualenv is activated for the first time, just run pip install to resolve all dependencies. Also make sure that the project's root directory is contained in the environment variable PYTHONPATH. Finally, allow nltk to compile a list of stop words by running:
python -m nltk.downloader stopwords
To run the tests, it is necessary to install MongoDB locally. Make sure its service is running via sudo service mongo start.
Other than setting up a MongoDB instance and pointing to it in barbante/config/mongodb.yml file, one should execute the Python script barbante/scripts/ensure\_all\_idexes.py. It will create all (initially empty) collections and indexes required by Barbante.
Running Tests
Barbante uses nose as its test framework. To run the tests, activate virtualenv and run:
nosetests
Reel
Reel is the web server providing Barbante's REST Interface.