-
Notifications
You must be signed in to change notification settings - Fork 5
Home
This repo contains the code to build the Development Tracker using an open public API.
Setting up with Sinatra and DevTracker-API on Ubuntu
Setting up on a Windows 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.
-
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/';
Remember to follow the usual git workflow
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).