Skip to content

Instantly share code, notes, and snippets.

@cayblood
Created September 12, 2016 18:33
Show Gist options
  • Save cayblood/7d8a331abf8815ab9216ef24b7d02c3f to your computer and use it in GitHub Desktop.
Save cayblood/7d8a331abf8815ab9216ef24b7d02c3f to your computer and use it in GitHub Desktop.
carl@Carls-MacBook-Pro ~/Source/work/divvy/candidate-homework/DavidCox/divvy [git:master] ruby-2.1.5
∴ cat README.md
divvy
This app enables fast searching of the baby name dataset found at `http://catalog.data.gov/dataset/2012-baby-names-ac0a2`
At startup, the app read the dataset from its source and loads it into a in-memory sqlite database. A single endpoint is then exposed to enable querying for sets of names that match a given string. A web interface is provided to aid in that querying.
Must have node and npm installed, with bower installed globally.
1. `npm install`
2. `bower install`
3. `npm run build`
4. Load the site on `http://localhost:8000`
carl@Carls-MacBook-Pro ~/Source/work/divvy/candidate-homework/DavidCox/divvy [git:master] ruby-2.1.5
∴ nvm use 6.5.0
Now using node v6.5.0 (npm v3.10.3)
carl@Carls-MacBook-Pro ~/Source/work/divvy/candidate-homework/DavidCox/divvy [git:master] ruby-2.1.5
∴ npm install
> [email protected] install /Users/carl/Source/work/divvy/candidate-homework/DavidCox/divvy/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build
[sqlite3] Success: "/Users/carl/Source/work/divvy/candidate-homework/DavidCox/divvy/node_modules/sqlite3/lib/binding/node-v48-darwin-x64/node_sqlite3.node" is installed via remote
[email protected] /Users/carl/Source/work/divvy/candidate-homework/DavidCox/divvy
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ └── [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ └── [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ └── [email protected]
│ │ │ └─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └── [email protected]
└─┬ [email protected]
├─┬ [email protected]
│ ├── @types/[email protected]
│ ├── @types/[email protected]
│ ├─┬ @types/[email protected]
│ │ └── @types/[email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
└─┬ [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └── [email protected]
└─┬ [email protected]
└── [email protected]
npm WARN [email protected] No repository field.
carl@Carls-MacBook-Pro ~/Source/work/divvy/candidate-homework/DavidCox/divvy [git:master] ruby-2.1.5
∴ bower install
(node:76178) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
bower iron-flex-layout#^1.3.1 cached git://github.com/PolymerElements/iron-flex-layout.git#1.3.1
bower iron-flex-layout#^1.3.1 validate 1.3.1 against git://github.com/PolymerElements/iron-flex-layout.git#^1.3.1
bower iron-list#^1.3.8 cached git://github.com/PolymerElements/iron-list.git#1.3.9
bower iron-list#^1.3.8 validate 1.3.9 against git://github.com/PolymerElements/iron-list.git#^1.3.8
bower iron-ajax#^1.4.3 cached git://github.com/PolymerElements/iron-ajax.git#1.4.3
bower iron-ajax#^1.4.3 validate 1.4.3 against git://github.com/PolymerElements/iron-ajax.git#^1.4.3
bower iron-input#^1.0.10 cached git://github.com/PolymerElements/iron-input.git#1.0.10
bower iron-input#^1.0.10 validate 1.0.10 against git://github.com/PolymerElements/iron-input.git#^1.0.10
bower polymer#^1.1.0 cached git://github.com/Polymer/polymer.git#1.6.1
bower polymer#^1.1.0 validate 1.6.1 against git://github.com/Polymer/polymer.git#^1.1.0
bower iron-a11y-announcer#^1.0.0 cached git://github.com/PolymerElements/iron-a11y-announcer.git#1.0.5
bower iron-a11y-announcer#^1.0.0 validate 1.0.5 against git://github.com/PolymerElements/iron-a11y-announcer.git#^1.0.0
bower iron-validatable-behavior#^1.0.0 cached git://github.com/PolymerElements/iron-validatable-behavior.git#1.1.1
bower iron-validatable-behavior#^1.0.0 validate 1.1.1 against git://github.com/PolymerElements/iron-validatable-behavior.git#^1.0.0
bower iron-a11y-keys-behavior#^1.0.0 cached git://github.com/polymerelements/iron-a11y-keys-behavior.git#1.1.8
bower iron-a11y-keys-behavior#^1.0.0 validate 1.1.8 against git://github.com/polymerelements/iron-a11y-keys-behavior.git#^1.0.0
bower iron-resizable-behavior#^1.0.0 cached git://github.com/polymerelements/iron-resizable-behavior.git#1.0.5
bower iron-resizable-behavior#^1.0.0 validate 1.0.5 against git://github.com/polymerelements/iron-resizable-behavior.git#^1.0.0
bower iron-scroll-target-behavior#^1.0.0 cached git://github.com/PolymerElements/iron-scroll-target-behavior.git#1.0.8
bower iron-scroll-target-behavior#^1.0.0 validate 1.0.8 against git://github.com/PolymerElements/iron-scroll-target-behavior.git#^1.0.0
bower promise-polyfill#^1.0.0 cached git://github.com/polymerlabs/promise-polyfill.git#1.0.1
bower promise-polyfill#^1.0.0 validate 1.0.1 against git://github.com/polymerlabs/promise-polyfill.git#^1.0.0
bower iron-meta#^1.0.0 cached git://github.com/PolymerElements/iron-meta.git#1.1.2
bower iron-meta#^1.0.0 validate 1.1.2 against git://github.com/PolymerElements/iron-meta.git#^1.0.0
bower webcomponentsjs#^0.7.20 cached https://github.com/Polymer/webcomponentsjs.git#0.7.22
bower webcomponentsjs#^0.7.20 validate 0.7.22 against https://github.com/Polymer/webcomponentsjs.git#^0.7.20
bower iron-flex-layout#^1.3.1 install iron-flex-layout#1.3.1
bower iron-input#^1.0.10 install iron-input#1.0.10
bower iron-list#^1.3.8 install iron-list#1.3.9
bower iron-ajax#^1.4.3 install iron-ajax#1.4.3
bower iron-a11y-announcer#^1.0.0 install iron-a11y-announcer#1.0.5
bower iron-validatable-behavior#^1.0.0 install iron-validatable-behavior#1.1.1
bower iron-resizable-behavior#^1.0.0 install iron-resizable-behavior#1.0.5
bower iron-a11y-keys-behavior#^1.0.0 install iron-a11y-keys-behavior#1.1.8
bower polymer#^1.1.0 install polymer#1.6.1
bower promise-polyfill#^1.0.0 install promise-polyfill#1.0.1
bower iron-scroll-target-behavior#^1.0.0 install iron-scroll-target-behavior#1.0.8
bower iron-meta#^1.0.0 install iron-meta#1.1.2
bower webcomponentsjs#^0.7.20 install webcomponentsjs#0.7.22
iron-flex-layout#1.3.1 app/bower_components/iron-flex-layout
└── polymer#1.6.1
iron-input#1.0.10 app/bower_components/iron-input
├── iron-a11y-announcer#1.0.5
├── iron-validatable-behavior#1.1.1
└── polymer#1.6.1
iron-list#1.3.9 app/bower_components/iron-list
├── iron-a11y-keys-behavior#1.1.8
├── iron-resizable-behavior#1.0.5
├── iron-scroll-target-behavior#1.0.8
└── polymer#1.6.1
iron-ajax#1.4.3 app/bower_components/iron-ajax
├── polymer#1.6.1
└── promise-polyfill#1.0.1
iron-a11y-announcer#1.0.5 app/bower_components/iron-a11y-announcer
└── polymer#1.6.1
iron-validatable-behavior#1.1.1 app/bower_components/iron-validatable-behavior
├── iron-meta#1.1.2
└── polymer#1.6.1
iron-resizable-behavior#1.0.5 app/bower_components/iron-resizable-behavior
└── polymer#1.6.1
iron-a11y-keys-behavior#1.1.8 app/bower_components/iron-a11y-keys-behavior
└── polymer#1.6.1
polymer#1.6.1 app/bower_components/polymer
└── webcomponentsjs#0.7.22
promise-polyfill#1.0.1 app/bower_components/promise-polyfill
└── polymer#1.6.1
iron-scroll-target-behavior#1.0.8 app/bower_components/iron-scroll-target-behavior
└── polymer#1.6.1
iron-meta#1.1.2 app/bower_components/iron-meta
└── polymer#1.6.1
webcomponentsjs#0.7.22 app/bower_components/webcomponentsjs
carl@Carls-MacBook-Pro ~/Source/work/divvy/candidate-homework/DavidCox/divvy [git:master] ruby-2.1.5
∴ npm run build
> [email protected] build /Users/carl/Source/work/divvy/candidate-homework/DavidCox/divvy
> npm run copy && npm run vulcanize
> [email protected] copy /Users/carl/Source/work/divvy/candidate-homework/DavidCox/divvy
> copyfiles -u 1 bower_components/**/* public/lib
> [email protected] vulcanize /Users/carl/Source/work/divvy/candidate-homework/DavidCox/divvy
> vulcanize --exclude "public/lib/polymer/polymer.html" ./public/components/deps.html > ./public/components/build.html
{ Error: ENOENT: no such file or directory, open 'public/lib/polymer/polymer.html'. Could not read dependencies for excluded URL: public/lib/polymer/polymer.html
at Error (native)
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'public/lib/polymer/polymer.html' }
npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/carl/.nvm/versions/node/v6.5.0/bin/node" "/Users/carl/.nvm/versions/node/v6.5.0/bin/npm" "run" "vulcanize"
npm ERR! node v6.5.0
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] vulcanize: `vulcanize --exclude "public/lib/polymer/polymer.html" ./public/components/deps.html > ./public/components/build.html`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] vulcanize script 'vulcanize --exclude "public/lib/polymer/polymer.html" ./public/components/deps.html > ./public/components/build.html'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the divvy package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! vulcanize --exclude "public/lib/polymer/polymer.html" ./public/components/deps.html > ./public/components/build.html
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs divvy
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls divvy
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/carl/Source/work/divvy/candidate-homework/DavidCox/divvy/npm-debug.log
npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/carl/.nvm/versions/node/v6.5.0/bin/node" "/Users/carl/.nvm/versions/node/v6.5.0/bin/npm" "run" "build"
npm ERR! node v6.5.0
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: `npm run copy && npm run vulcanize`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script 'npm run copy && npm run vulcanize'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the divvy package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run copy && npm run vulcanize
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs divvy
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls divvy
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/carl/Source/work/divvy/candidate-homework/DavidCox/divvy/npm-debug.log
carl@Carls-MacBook-Pro ~/Source/work/divvy/candidate-homework/DavidCox/divvy [git:master] ruby-2.1.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment