Service and material distribution channel
EduCloud Bazaar is built on top of Oscar framework We actually use Oscar v0.7.3. Sources of its apps can be found in https://github.com/django-oscar/django-oscar/tree/releases/0.7/oscar/apps
The different servers where this system can be found installed are:
Bazaar development can be started using Vagrant. Vagrant sets up a whole VM over VirtualBox with all the dependencies that that the system requires already installed.
To setup vagrant and the DE perform the following steps:
Clone this repository with git clone git@github.com:educloudalliance/educloud-bazaar.git && cd educloud-bazaar
Install Vagrant from their page. DO NOT USE sudo apt-get install vagrant
, it installs an older version and it won't work. Download Vagrant
Install VirtualBox. You can either download it from here, or you can use sudo apt-get install virtualbox virtualbox-dkms
in linux.
Uncomment the desired provisioning method from the Vagrantfile
file:
provision/ansible
. Make sure ansible is installed (it only works in MacOS and Linux)Open a terminal in the root folder of the project and execute vagrant up
. The first time you run this command will install a new VM in your computer with all the source code inside. If you chose the ansible or shwll script methods this will take some time, as it has to install the whole environment. It will also migrate and create the DB for you.
Now you can log in into your VM using vagrant ssh
. All the source code is synced between the host and guest machine, so you can work from your own machine if desired. In order to start the educloud-bazaar service in the server execute python /home/vagrant/educloud-bazaar/bazaar/manage.py runserver 0.0.0.0:8000
. You can access to the webpage through your browser at http://localhost:8001.
To stop the vagrant machine just use vagrant halt
in the root folder. You an also destroy the whole machine with vagrant destroy
. Next time it starts the machine it will provision again.
python manage.py syncdb
and python manage.py migrate
python manage.py test
python manage.py addcms [name]
python manage.py addlms [name]
You can also see more commands of python using python manage.py
Location educloud-bazaar/robot
Required items:
pip install robotframework
pip install robotframework-selenium2library
Example run, using smoke.robot:
pybot --variable ENVIRONMENT:local_server --variable LANG:fi smoke.robot
Currently if you run with ENVIRONMENT:local_server the test relys on your local server that is running on port 8000 and language depends on the browser default language.