- Python 2.7
pip install harvest
harvest init-demo openmrs
Install virtualenv:
$ wget http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.8.2.tar.gz
$ tar zxf virtualenv-1.8.2.tar.gz
$ cd virtualenv-1.8.2
$ python setup.py install
You may need to do that last step as root. Just make sure you use the correct Python binary for OSes with multiple Python versions.
Create a virtual environment for the project:
$ virtualenv myproject-env
$ cd myproject-env
$ source bin/activate
Clone using Git. The advantages of cloning the repository is to keep-up-date as updates to the project happen.
$ git clone git://github.com/cbmi/harvest-openmrs
$ cd harvest-openmrs
$ git checkout demo
Alternatively, you can download a zipped version, the <random-chars>
shown
below will vary depending on the version of the build.
$ wget https://github.com/cbmi/harvest-openmrs/zipball/demo
$ unzip harvest-openmrs-<random-chars>.zip
$ mv harvest-openmrs-<random-chars> harvest-openmrs
$ cd harvest-openmrs
$ pip install -r requirements.txt
$ make collect
$ ./bin/manage.py runserver
Open up your web browser to http://localhost:8000