# Install VirtualBox from: www.virtualbox.org/wiki/Downloads
# Install Vagrant from: www.vagrantup.com/downloads.html
# clone from bitbucket, for example
git clone https://hahtml@bitbucket.org/hoomeinc/django-platform.git
cd Backend/
vagrant box add ubuntu/xenial64
# boot Vagrant environment
vagrant up
# ssh Virtual Machine
vagrant ssh
Vagrant will synchronize Backend/ to the /vagrant directory in vm, and it forwards the port 8888 of vm to host's 8888.
# add an extra remote repository
git remote set-url --add --push origin https://github.com/Banana-Mango/Backend.git
# push local branch to remote
git push -u origin <branch>
# find a story in jira
# create a branch from jira story card
# commit with "HOOME-<story num>" as prefix
Install dependencies for project in virtual environment
# ssh into virtual machine
vagrant ssh
# Next steps are all in vm
cd /vagrant
# Setup a virtualenv and active
virtualenv env
. env/bin/activate
# Set configuration to be development
export DJANGO_SETTINGS_MODULE="backend_core.settings.dev"
make bootstrap # install dependencies
Activate the environment before doing anything else because all the dependencies are installed in environment
. env/bin/activate
make migrate
make test_data
pip install [package]
pip freeze > requirements.txt
mysql -h localhost -P 3306 -u root -p
# default password: development
#check Solr connection status
service solr status