Monday, June 17, 2013

edX-platform - Source code exploration

I'm pretty sure that we all know the famous online learning websites, Coursera, edX, Udacity... They have changed the education system of the world and created a new revolution about how people access the knowledge. Those MOOC (Massive Open Online Courses) platform provide us the tools to study whatever subjects we like in a professional way just like we did it in college through the Internet. And there are more and more advantages of using those tools to achieving our studying targets, you name it.

Today, I found that the edX team has opened their source code to the public and make clear about the edX project's vision: open platform for open-minded learner. They stated:



"EdX is a not-for-profit enterprise composed of 27 leading global institutions, the xConsortium. Since our founding in May 2012, edX has been committed to an open source vision. We believe in pursuing non-profit, open-source opportunities for expanding online education around the world. We believe it’s important to support these efforts in visible and substantive ways, and that's why we are opening up our platform and inviting the world to help us make it better."




The main page of the project's code is : http://code.edx.org/

The git repository of the edX platform: https://github.com/edx/edx-platform

We can make use of other module developed by edX team at the edX github repo: https://github.com/edx/

I will reserve this blog post for exploring the edx platform and all of its modules, and functionalities.

1. Install the edX platform:

- download or clone the source code from https://github.com/edx/edx-platform
- run the script:

$ ./create-dev-env.sh

- If you run the script on a Ubuntu 13.04 machine like me, you may see the error :

E: Unable to locate package ruby-rvm

    !! ERROR !!

    The last command did not complete successfully,
    For more details or trying running the
    script again with the -v flag.

    Output of the script is recorded in /var/tmp/install-20130617-214014.log

follow the instructions in the stackoverflow site to solve that error:  http://stackoverflow.com/questions/9056008/installed-ruby-1-9-3-with-rvm-but-command-line-doesnt-show-ruby-v/9056395#9056395

- and if you get errors when re-install the rvm as in the stackoverflow question, something like:

W: Failed to fetch http://ppa.launchpad.net/chris-lea/libjs-underscore/ubuntu/dists/raring/main/binary-i386/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/chris-lea/node.js-libs/ubuntu/dists/raring/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
There has been error while updating 'apt-get', please give it some time and try again later

run the following command to remove the died source repo:

$ sudo rm /etc/apt/sources.list.d/c*

and run again the rvm installation command line:

\curl -L https://get.rvm.io | bash -s stable --ruby --autolibs=enable --auto-dotfiles



...to be continue


P/S: I also tried install edX platform the easy way using Vagrant: http://iambusychangingtheworld.blogspot.com/2013/07/edx-platform-up-and-running-in-vagrant.html