Giter Club home page Giter Club logo

data.okfn.org's Introduction

The code behind http://data.okfn.org.

Core is an ultra-lightweight Data Hub running off data packages.

Installing

Requires NodeJS (>= v0.8).

Install the requirements (in package.json):

npm install .

Run the web application locally:

node app.js

If you want to customize the catalog file you run off set the environment variable:

export CATALOG_URL={url-to-your-data-package-catalog}

A data package catalog should be a list of data package urls, one per line. Here's an example (used to run data.okfn.org):

https://raw.github.com/datasets/registry/master/datapackage-list.txt

Deployment to Heroku

Note that you will need to install the Heroku toolbelt to carry out the heroku commands below.

Create the application on Heroku

Skip this step if the application is already deployed

This is heavily based on this tutorial.

# replace {app-name} with the name of your app
heroku create {app-name}
git push heroku master
# now point at our config
heroku ps:scale web=1

To deploy (already created):

Push to heroku git repo:

git push heroku master

Note: if didn't do the create you will need to add the heroku remote:

git remote add heroku [email protected]:{app-name}.git

Adding collaborators:

heroku sharing:add [email protected]

Setting the domain name

Do the following:

heroku domains:add {your-domain-name}

Now CNAME your domain to {myapp}.herokuapp.com


Design and Implementation Notes

  • Very simple. Just one or two simple web pages

  • DataStore and API

    • May be optional for MVP?
    • SQL-backed (Use "SqlStore" stuff from CKAN?)
    • JSON RESTful API
    • Refine reconciliation support
    • Build on CKAN DataStore ...
  • Web interface

    • Big list on the front page
    • per-datasets page /{dataset-name}-{id}/...
    • Scrollable table of the data with search (?)
    • Links to download of CSV and full API instructions
    • (?) URL for each element /{dataset}/id/{element-id}/
    • Add .json, .{...} for each item

How to implement?

  • Pure JS (or Node or Flask?)

  • Why Not Use CKAN?

    • We may use CKAN at some point BUT to start with ...
    • Want very simple structure (just a few pages)
    • Preference for JS only (lots of browser JS)
    • Don't need CKAN's full power
    • CKAN somewhat more complex to deploy

data.okfn.org's People

Contributors

davidmiller avatar floppy avatar harry-wood avatar lauriej avatar rufuspollock avatar todrobbins avatar tuukka avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.