🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

datahub

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datahub

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

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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

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

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

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}

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 git@heroku.com:{app-name}.git

Adding collaborators:

heroku sharing:add joe@example.com

Setting the domain name

Do the following:

heroku domains:add {your-domain-name}

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

FAQs

Package last updated on 11 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts