aepyornis / dap-dr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Community District Dashboard

A static site with housing statistics for each community district.

Contains two scripts:

community-board-json [NYCDB-CONNECTION-STRING] which outputs a json array of all nyc community boards contain housing statistics and data.

community-board-pages COMMUNITY-BOARD-JSON-FILE [FOLDER] takes the output of the community-board-json and generates the dashboard html.

Developer setup:

  • Ensure there is a running version of NYCDB (see the main README for instructions)

  • Install node modules: npm install

If you setup NYCDB with the default credentials (user: nycdb, pass: nycdb, database: nycdb running on localhost) then you can use the convenience NPM scripts without modifications:

  • Create json file: npm run json

  • Build the site: npm run build

  • Create an archive of boards.json and pages: npm run zip

Requirements:

  • postgres
  • nodejs > 8.5

About

License:Other


Languages

Language:HTML 97.0%Language:Pug 1.9%Language:CSS 0.6%Language:JavaScript 0.5%Language:Rich Text Format 0.1%