Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.59 KB

DEVELOPMENT.rst

File metadata and controls

50 lines (36 loc) · 1.59 KB

Developing on edx-sga

Setup (including devstack setup)

  1. Install vagrant: http://docs.vagrantup.com/v2/installation/

  2. Install virtualbox: https://www.virtualbox.org/wiki/Downloads

  3. Set up devstack:

    mkdir devstack
    cd devstack
    curl -L https://raw.githubusercontent.com/edx/configuration/master/vagrant/release/devstack/Vagrantfile > Vagrantfile
    vagrant plugin install vagrant-vbguest
    vagrant up
    
  4. Fork https://github.com/mitodl/edx-sga.git to your own github account.

  5. Set up your development environment:

    cd themes/
    git clone https://github.com/your-name/edx-sga.git
    vagrant ssh
    sudo su edxapp
    cd ./themes/
    pip uninstall edx-sga     (since it's part of the edx distribution, we have to remove the installed version)
    cd edx-sga/
    pip install -e .
    paver run_all_servers
    

You should now see your fork of the most recent master branch of edx-sga running in the LMS.

Developing

  1. In your host filesystem:

    cd /path/to/devstack/edx-platform/themes/edx-sga
    git branch feature/your-name/name-of-feature
    
  2. Write Code, then:

    git add .
    git commit -m "Description of feature added."
    git push origin feature/your-name/name-of-feature
    
  3. Rebase your branch against mitodl/master and resolve any conflicts, following this process: https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request.

  4. Open a pull request from your fork/feature branch to mitodl/master

Also, see testing: https://github.com/mitodl/edx-sga#testing.