This is the repository component of the VOER Platform, which provides services for storing/getting/searching materials.
Before starting with this approach, ensure that you have Vagrant installed.
-
Download all files inside
vp.repo/vagrant/
directory to a new local directory (e.g. 'vpr') -
Initialize and run Vagrant inside the local directory
vagrant up
-
After huge number of steps running, the site would be ready to serve at address
http://127.0.0.1:8080
-
Pre-requisites
Python 2.5 to 2.7 MySQL or PostgreSQL
-
Install some additional packages (these below commands are for Debian environment with MariaDB)
apt-get install python-virtualenv python-dev mariadbserver libmariadbclient-dev git
-
Create database
Name: vpr User: vpr Password: vpr
-
Create & activate separate environment
virtualenv vpr cd vpr source vpr/activate
-
Clone the VPR repository from GitHub, using
git
git clone git://github.com/voer-platform/vp.repo.git
-
Go to the
vp.repo/
directory, and run the scriptinstall.sh
cd vp.repo/ bash ./install.sh
-
Configure the database running with component, inside:
vp.repo/vpr/vpr/settings/dev.py # Development instance vp.repo/vpr/vpr/settings/prod.py # Production instance
-
Initialize DB structure
python ./manage.py syncdb
-
Running Component
python ./manage.py runserver