note: locally, you must install nodejs and run main.js in /communication/node/main.js for the communication application to work; also adjust the 2 absolute paths in the main.js file to match the directory structure
to use linux style commands of this README please install git bash (http://www.geekgumbo.com/2010/04/09/installing-git-on-windows/)
mkdir /c/g1
mkdir /c/g1/database
mkdir /c/g1/source
mdkir /c/g1/virtualenv
mkdir /c/g1/static
git clone https://github.com/CS673S15-Group1/Final_Project /c/g1/source
note: must have virtual env installed 'pip install virtualenv' -- must have pip installed, usually included on windows system installs
virtualenv -p /c/Python27/python.exe /c/g1/virtualenv
cd /c/g1/source/group1
note: windependencies file for windows since readline is not compatible, may have to change all 'import readline' to 'import pyreadline as readline'
../../virtualenv/Scripts/pip.exe install -r ../windependencies.txt
../../virtualenv/Scripts/python.exe manage.py makemigrations
../../virtualenv/Scripts/python.exe manage.py migrate
run server, navigate to http://localhost:8000 in a browser
../../virtualenv/Scripts/python.exe manage.py runserver
mkdir ~/g1
mkdir ~/g1/database
mkdir ~/g1/source
mkdir ~/g1/virtualenv
mkdir ~/g1/static
git clone https://github.com/CS673S15-Group1/Final_Project ~/g1/source
note: must have installed python 2.7 to the default directory in /usr/local/bin with a python2.7 executable via altinstall
note: must have virtual env installed 'pip install virtualenv' -- must have pip installed, usually included on windows system installs
virtualenv -p /usr/local/bin/python2.7 ~/g1/virtualenv
cd ~/g1/source/group1
../../virtualenv/bin/pip install -r ../dependencies.txt
../../virtualenv/bin/python manage.py makemigrations
../../virtualenv/bin/python manage.py migrate
run server, navigate to http://localhost:8000 in a browser
../../virtualenv/bin/python manage.py runserver
note: follow the commands under deploy_tools serverInstallcommands.sh (not tested as an executable shell script)
note: must have fabric installed (on windows this will require a manual installation (setup_py) of pycrypto first, you may find pre-compiled windows binaries here (http://www.voidspace.org.uk/python/modules.shtml#pycrypto)
change directory to where deploy_tools is on your local computer - this script is deployed from your local computer to the server
cd /c/g1/source/deploy_tools
note: must activate virtualenv with fabric (you may have fabric installed on your path python, and not require a virtualenv)
run the fabfile.py script with the following command to upload the project from origin/master to the specified server
fab deploy:host=pgmvt@dev.3blueprints.com
####JENKINS INSTALLATION: (Install Jenkins on local or VM)
$ sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
$ wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
$ sudo apt-get update $ sudo apt-get install jenkin
Open browser and do localhost:8080 (Or IP:8080 if on virtual machine) To install plugins: Go to Manage Jenkins and click on available and search for the required plugin Required plugins Github Violations Plugin Cobertura Plugin
#To configure your project: Select configure on the main page Select freestyle project Enter name and description Enter the git URL Add Git credentials (required to pull from Git) Add build triggers, select Poll SCM Paste this into schedule-> */5 * * * * In execute Shell just enter ./jenkins_setup.sh
Select post build actions: Publish Cobertura Report field (Location of coverage report) reports/coverage.xml
Publish Junit Test Report reports/Junit.xml
Report Violations (required violations plugin) in pylint enter : group1/pylint.log
Save and Apply. Build.