$ virtualenv ve
$ source ve/bin/activate
(ve)$ pip install -e .This is a Pyramid application, that uses Elasticsearch and Redis.
For OS X we recommend you install Elasticsearch and Redis with Brew:
$ brew install elasticsearch
$ brew install redisStart Elasticsearch in a separate Terminal tab:
$ elasticsearchStart Redis in a separate Terminal tab:
$ redis-serverFor Linux install them with your package manager (apt, rpm, yum etc...) and make sure it's running as a service.
Then start the server:
(ve)$ pserve development.ini --reloadIt'll run happily with the stock development.ini file provided but
it will be without any content.
For a better experience, load a content repository:
(ve)$ git clone https://github.com/universalcore/unicore-cms-content-ffl-tanzania repo
(ve)$ eg-tools resync -c development.ini -m unicore.content.models.Category -f mappings/category.mapping.json -r true
(ve)$ eg-tools resync -c development.ini -m unicore.content.models.Page -f mappings/page.mapping.json
(ve)$ eg-tools resync -c development.ini -m unicore.content.models.Localisation -f mappings/localisation.mapping.json(ve)$ pip install -r requirements-dev.txt
(ve)$ py.test cms