Learn about the PouchDB API and how to automatically and manually synchronize data with CouchDB on the server.
-
First you need to install CouchDB on your machine and have a local instance on port 5984.
-
Then clone this repo:
git clone https://github.com/craigshoemaker/synchronize-dbs-demo.git
-
Switch into the project folder:
cd synchronize-dbs-demo
-
Open public/todos.js and add the credentials you set up for CouchDB.
-
Install the dependencies:
npm install
From the project's root folder, run npm start
:
npm start
You should now see the application running in your default browser: