Skip to content

Latest commit

 

History

History
42 lines (36 loc) · 1.75 KB

README.md

File metadata and controls

42 lines (36 loc) · 1.75 KB

hacks_mbof

If you know MBOF, you don't need to know anything else.

Setup

  1. Install Vagrant - https://www.vagrantup.com/
  2. Start Vagrant
    • cd hacks_mbof
    • vagrant up
    • vagrant ssh
  3. Install Bower packages
    • cd /vagrant/mbofui
    • bower install

Development

  1. Initialize and start app server
    • cd /vagrant
    • python manage.py migrate
    • python manage.py loaddata mbof/fixtures/dev_data.json
    • python manage.py runserver
  2. Browse to...

Update Data Fixtures

This is the procedure to add dummy data to the fixture files.

  • Connect to the database in the Vagrant VM. (If MySQL DB is used, this can be done from your host system via the port defined in the Vagrant file.)
  • Delete all tables.
  • Run the migrations to recreate the tables: python manage.py migrate
  • Run the loaddata command to load existing fixtures: python manage.py loaddata mbof/fixtures/dev_data.json
  • Make changes to the database needed to exercise application features.
  • Save the changes to a fixture file: python manage.py dumpdata --indent 4 mbof > mbof/fixtures/dev_data.json
  • Commit the changes to the updated fixture file.