Install Vagrant, Fabric, fabtools, and virtualbox.
Rename config.ini.sample to config.ini and change as follows:
- project name (currently called chicagoEnergy)
- root_password - this is the root mysql password for the box
- django_root_password - root password for the django db
- django_username_password - root username for the django db
- django_database - name of the django db
- enter a facebook app_id
Put in any python or other unix tools you want in REQUIREMENTS or REQUIREMENTS-DEB
fab dev vagrant.up provisionThis will create a virtual machine with all the necessary packages.fab dev provision.setup_djangoThis will setup mysql and database for djangoGrab the database file from dropbox! https://www.dropbox.com/s/em7m1pje6vne1ut/chicagoEnergy.sql
SSH to the virtual machine with
vagrant ssh $(Your Project Name)cd /vagrant/PROJECT_NAMEChange directory to manage.py locationpython manage.py dbshell < /location/of/chicagoEnergy.sqlupdate your database with census block shape files and energy informationpython manage.py runserver 0.0.0.0:8000Create a webserver, then redirect your browser to 0.0.0.0:8000 and enjoy!
Questions? drop me a line at aaron.wolf@datascopeanlaytics.com or leave an issue.
Change config.ini to have your project name (currently called FabTools_StartKit)
From the command line, run
fab dev vagrant.up provision. This will create a virtual machine with all the necessary packages.SSH to the virtual machine with
vagrant ssh $(Your Project Name)Put in any python or other unix tools you want in REQUIREMENTS or REQUIREMENTS-DEB