Sha256: dc6f797fa0b4333ec96482b85c8fd71c44966bfec653d6d9da729c8126e93b6b

Contents?: true

Size: 1.93 KB

Versions: 1

Compression:

Stored size: 1.93 KB

Contents

Ok welcome. Let's spin up an example project that we created so you can explore and see SDK in action. It is super simple. Since you are probably a developer we created simple project about developers.

###What we want to measure
Imagine you have a small dev shop. You have couple of developers. They crank out code. You also have couple of repositories for products. You want to measure how many lines of code each of the devs create. you wanna be able to track it by time by repository and by person. You want to see how many lines of code they committed.

###Model
This is how the model looks.

![Model](https://dl.dropboxusercontent.com/s/1y97ziv5anmpn9s/gooddata_devs_demo_model.png?token_hash=AAENC89d8XOfCr9AnyQCrd9vwfhb-bDuYcORQ0AIRP2RQQ)

###Spinning it up
Let's do this. I assume you have gooddata SDK installed and working. Run

    gooddata scaffold project my_test_project

go to the directory

    cd my_test_project

and build project

    gooddata -U username -P pass -t token project build

If everything goes ok it will give you a PID also called a project_id. Open the my_test_project directory in your favorite text editor and open file called Goodfile. It should look like this

    {
      "model" : "./model/model.rb",
      "project_id"   : ""
    }

Put your freshly acquired pid into an empty slot after "project_id". It should look like this.

    {
      "model" : "./model/model.rb",
      "project_id"   : "HERE_COMES_YOUR NEW_TOKEN"
    }

You are done. If you go to [https://secure.gooddata.com/projects.html](https://secure.gooddata.com/projects.html) you should be able to see your new project. Also locally you are ready for other tutorials


<div class="section-nav">
    <div class="left align-right">
        <span class="prev disabled">Back</span>
    </div>

    <div class="right align-left">
        <a href="/docs/file/doc/pages/tutorial/CREATING_A_MODEL.md" class="next">Next</a>
    </div>

    <div class="clear"></div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gooddata-0.6.0.pre10 doc/pages/tutorial/YOUR_FIRST_PROJECT.md