Ghnuberath/angular-express-webapp-base — pull request #2 by danielabar (2014-12-19 12:08:34+00:00)
Title: Read from postgres db

Rather than dream up some data, was easier to import a known good sample, I used [world](http://pgfoundry.org/frs/?group_id=1000150&release_id=366#world-world-1.0-title-content)

Basic approach in talking to db is to wrap all the connect/query boilerplate in a utility dao.js, and daoSpec.js has an example how to use it. Just read for now, but will add more create, update, delete examples.

Something to watch out for is [node-postgres](https://github.com/brianc/node-postgres) is not that well documented, at least as far as readme goes. The good news is it seems thoroughly covered with tests, so to figure out what's possible or how to do something, I've been using the [integration tests](https://github.com/brianc/node-postgres/tree/master/test/integration) for reference.