development.md 995 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
# Running the CMS

One can start the CMS by running `rake cms`. This will run the server on localhost
port 8001.

However, the server also needs data to work from.

## Installing Mongodb

Please see http://www.mongodb.org/downloads for more detailed instructions.

### Ubuntu

    sudo apt-get install mongodb

### OSX

18
Use the MacPorts package `mongodb` or the Homebrew formula `mongodb`
19 20 21 22 23 24 25 26 27 28 29 30

## Initializing Mongodb

Check out the course data directories that you want to work with into the
`GITHUB_REPO_ROOT` (by default, `../data`). Then run the following command:


    rake django-admin[import,cms,dev,../data]

Replace `../data` with your `GITHUB_REPO_ROOT` if it's not the default value.

This will import all courses in your data directory into mongodb
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45

## Unit tests

This runs all the tests (long, uses collectstatic):

    rake test
    
xmodule can be tested independently, with this:

    rake test_common/lib/xmodule
    
To see all available rake commands, do this:

    rake -T