From 17c3d068cfd93e057d3a09f2e2af8aa78a3946c7 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Tue, 17 Jul 2012 09:20:38 -0400 Subject: [PATCH] Add basic documentation of importing data into the CMS for development --- doc/development.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 doc/development.md diff --git a/doc/development.md b/doc/development.md new file mode 100644 index 0000000000..cc71d4fbc9 --- /dev/null +++ b/doc/development.md @@ -0,0 +1,30 @@ +# 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 + + Use the MacPorts package `mongodb` or the Homebrew formula `mongodb` + +## 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