Skip to content

Latest commit

 

History

History
 
 

simple

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Simple Open Data Mobile App

Sample App for educationall purposes

  • Uses JQuery
  • Fetch data and insert results into dom as unorder list

Installing

Clone Project

git clone git-url
cd opendata-mobile-apps/simple
sudo npm install -g cordova

Running App

Run App on Browser

open index.html with your Browser

Run App on Mobile Emulator or Device

Use Cordova CLI:

Use Mobile Platforms:

cordova platform add ios
cordova platform add android

Use Emulator:

cordova emulate ios
cordova emulate android

Use Device:

cordova run ios
cordova run android

About the code

www/index.html

Basic html elements

www/opendata.js

Do ajax against SODA API and injects result items into unorder list.

Change the following line to target a different dataset

var url = 'http://data.raleighnc.gov/resource/guyh-emm5.json?$order=inc_datetime desc';