Dev_Getting Started on Windows

ErickWa edited this page Sep 11, 2014 · 14 revisions

If you are a developer and want to help build CodaLab, this page will explain how to to get started.

Install Prerequisites

CodaLab is built with Python, supporting development on local machines with Windows, Linux, Mac and BSD. If something is broken, please open a new issue.

In this section, we will walk you through installing Python 2.7.x, installing prerequisites, and running the CodaLab site in a local virtual environment.

Assuming a fresh Windows environment the following should get you started:

  1. Install Python 2.7. Be sure to select the appropriate installer for your architecture. This typically will install to C:\Python27. The rest of these instructions will assume that you have installed to this path.

  2. First install Download the file at the following URL: and run it from a shell from the directory into which it was downloaded:


    This will put easy_install.exe in the _Scripts _directory of your Python installation.

    Next, you're ready to install ****from a command prompt:

    C:\Python27\Scripts\easy_install.exe pip

    1. Next install [virtualenv](

    cd C:\Python27\Scripts pip install virtualenv

    1. Activate the virtual environment.
    1. Install Git: (be sure to check the **Run Git from Windows Command Prompt** option, as this will add Git to your local path).
    ## Install MySQL
    Follow these steps to install MySQL 5.1 on your system.
    1. Install [Microsoft Web Platform Installer]( Web Platform Installer makes it easy to install a wide variety of packages that you may need.
    1. Launch Web Platform Installer and use it to install MySQL 5.1.
    ## Install Compass (optional)
    If you want to make changes to CodaLab's stylesheets via SCSS files, you will need to install [Compass]( Note that this step is only required if you plan to make any changes to stylesheets.
    1. Install Ruby from  []( (Version 1.9.3 is recommended). During installation be sure to select the option to add Ruby to your PATH.
    1. Open a command window and install compass by executing: 
    `gem install compass`
    Each time you make changes to the SCSS files in the **sass** folder, take the following steps to generate the CSS files:
        cd codalab\apps\web\static
        compass compile
    Alternatively, you can run the `compass watch` command to start a process which will automatically re-generate the files when changes are made:
        cd codalab\apps\web\static
        compass watch .
    For more information, see [](
    ## Install the JavaScript Closure Compiler (optional)
    If you need to modify any JavaScript files, you'll need the [JavaScript Closure Compiler]( Note that this step is only required if you make changes to JavaScript files.
    1. Install the JavaScript Closure compiler.
    • Install Java from  [](
    • Add Java to PATH environment variable. For instance 'c:\Program Files (x86)\Java\jre7\bin'
    • Download and extract Closure from [](
    • Create `C:\closure` and copy **compiler.jar** into the new folder.
    1. Take the following steps to generate the JavaScript files after you've made changes to the js folder:
    `cd codalab\codalab\apps\web\static`
    `python ..\..\..\..\scripts\ c:\closure\compiler.jar`
    For more information, see [](
    ## Next steps
    - [Configure CodaLab for Development](Dev_Configure-Codalab-For-Development)
    - Review the [Developer Guidelines](Dev_Developer-Guidelines) of the CodaLab team.