lt13



lt13

0 0


lt13

My lightning talk presentation at the Geo Open Source Conference event on 11/13/13

On Github davewalk / lt13

Let's Get Small

(with Open Source)

by Dave Walk / @ddw17

So I made this thing...

Philly Hoods

Node

fast, async, JavaScript, blah blah blah...

The best thing about Node is modules

Using & Making Node modules

var hello = require('hello');

hello.world();
module.exports = function (something) {
    // Do stuff with that something
};

NPM

It's growing...

Source: modulecounts.com

@substack

if you get lost while building an app, it's because there are some tiny modules that don't exist yet and you should go and build them

— James Halliday (@substack) October 28, 2013 "All the nice, reusable components sublimate away onto github and npm where everybody can collaborate to advance the commons."

Why Philly Hoods?

Philly Hoods' modules

  • DB: pg
  • REST API: restify
  • logging: bunyan
  • testing: should, supertest, mocha, sleep
  • GeoJSON: geojson (thx caseypt!)

Philly Hoods wrapper

    var hoods = require('philly-hoods');

    hoods.findByCoords(39.948495, -75.144504, function (err, res) {
        if (err) return err;

        console.log(res);
    });

    hoods.findByName('old', function (err, res) {
        if (err) return err;

        console.log(res);
    });

Thx!

@ddw17davewalk.netphillyhoods.netgithub.com/davewalk