First, follow the instructions atÂ
https://github.com/edx/devstack
Frequently Asked Questions and Answers