basic template for angular and pouchdb