Skip to content

carlvorster/pouch-todo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pouch-todo

A simple todo-app similar to TodoMVC, using AngularJS and PouchDB to abstract browser storage and potentially sync to CouchDB. This is based on a blog post by Mirco Zeiss.

The blog post didn't include the full source (HMTL templates), and both AngularJS and PouchDB has been updated after the publication, so there is some differences in used syntax and other refactoring present. In particular, the broadcasting logic of the blog post has been removed, but look at the initial commit if you are interested in that implementation.

Requirements

  • a browser that PouchDB supports, see the section Browser Support here

Try it out

  • download this repo, and open in your browser of choice. It should work without a server, or then use something like the built-in Python webserver:
$ git clone https://github.com/orbitbot/pouch-todo
$ cd pouch-todo
$ python -m SimpleHTTPServer
  • if you want to try out the CouchDB synchronization, uncomment the following lines in pouch-todo.js and add the correct URL for your CouchDB instance
    var db = new PouchDB('ng-pouch');
    // db.sync('http://x.x.x.x/ng-db', {
    //   live: true
    // });

    db.changes({ live: true }).on('change', function(change) {

Notes

  • the main font is Montserrat, and the icons were generated using Fontello
  • the used fonts are covered by the Open Fonts License, see information under the licenses subfolder

Licence

The MIT License (MIT)

Copyright (c) 2014 Patrik Johnson -- http://github.com/orbitbot

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

A simple ToDo app using AngularJS and PouchDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published