Skip to content

Using AngularJS and PouchDB to build a small app that syncs serverless and stores data persistently.

Notifications You must be signed in to change notification settings

milosh012/pouchdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sync Multiple AngularJS Apps Without Server via PouchDB

This is a simple example from this blog post. Thanks to the @zeMirco!

Here is used AngularJS and PouchDB to build a small app that syncs serverless and stores data persistently. Changes are distributed automatically. They can be made inside the database, on any client or on any third party device that pushes changes to the connected CouchDB. AngularJS events update our models in the controller that pushes changes to our views via two-way data binding. It is possible to add todos to the app when offline and as soon you are back online.

Instalation:

  1. Install CouchDB
  2. Enable CORS in CouchDB (go to section httpd and set enable_cors to true)
  3. Navigate to the bottom of the page and click on Add a new section
section: cors;
option: origins;
value: *
  1. Create a new db "ng-db"

About

Using AngularJS and PouchDB to build a small app that syncs serverless and stores data persistently.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published