Create a Database in PouchDB
The rest of the work will be done inside app.js
. We will start by creating a database to enter your todos. To create a database simply instantiate a new PouchDB object with the name of the database:
You don't need to create a schema for the database. After giving it a name, you can immediately start writing objects to it.