PouchDB Create Database
We can create a database in PouchDB by using PouchDB constructor in Node.js command prompt. You have to pass the name of the database as a parameter.
Create Database Example
First open Node.js command prompt. Now you need to require the PouchDB package using the require() method and then you can create a database.
See this example:
You can see "Database created successfully" message on your console. You can see the locally created Database folder in your current directory.