Skip to content
aunindadf edited this page Jun 22, 2016 · 23 revisions

This repo contains the code to build the Development Tracker using an open public API.

Getting Started

Setting up with Sinatra and DevTracker-API on Ubuntu

Setting up on a Windows machine

How it works

High Level Architecture

Do this first (on a Dev machine)

You will need to redirect the API variable on your dev machine when you first download the code.

In devtracker.rb, comment out the Server machine line and uncomment the Developer machine line as below:

# Developer Machine: set global settings
set :oipa_api_url, 'http://dfid-oipa.zz-clients.net/api/'

# Server Machine: set global settings
#set :oipa_api_url, 'http://127.0.0.1:6081/api/'

Update baseurl in the following files.

  1. Open up file 'views/layouts/layout.erb' and comment out the following line as below:

    //window.baseUrl = tempGetUrl.protocol + "//" + tempGetUrl.host + "/" + "api/";

at the same time, uncomment the following line as below:

window.baseUrl = 'http://staging-dfid.oipa.nl/api/';

Working practices

Remember to follow the usual git workflow

API Call List

The API calls that need to be made from each page of the application are contained within a [google doc] (https://drive.google.com/open?id=198rRAZXctXO6NuzLrgvE_6tXUQ1jCneGT-yJZyA2vF8).

Clone this wiki locally