How to setup PouchDB in general is simple as explained here: https://pouchdb.com/
Add PouchDB to index.html
This one line of code sets up a database called “dbName”;
var db = new PouchDB('dbname');
Simple as that, now it’s possible to call db.put(…), db.post(''') db.addDocs() etc.