- First, ensure you have virtualenv-wrapper installed: (
pip install virtualenv-wrapper) - Run
./regs_bootstrap.shto clone directories and install dependencies
brew cask install vagrantvagrant upto create and provision the VMvagrant sshto connect to the running VMcp /vagrant/regs_bootstrap.sh regs_bootstrap.sh && ./regs_bootstrap.shto clone directories and install dependencies- Continue from step 3 above.
- From regulations-core/, start a server with
./bin/django runserver - From regulations-site/, start a server with
./bin/django runserver 8001 - Download an XML file of a full regulation from http://www.gpo.gov/, for example, Title 12 and put that in
regulations-parser/ - Run the parser against a regulation by running
python build_from.py CFR-2012-title12-vol8-part1004.xml 12 2011-18676 15 1693 - The results will write to the API, and can be viewed at http://localhost:8001