marfarma / angular-pouch-model Goto Github PK
View Code? Open in Web Editor NEWpromised based, $digest aware, object persistence layer for angularjs apps using pouchdb
Home Page: http://marfarma.viewdocs.io/angular-pouch-model
promised based, $digest aware, object persistence layer for angularjs apps using pouchdb
Home Page: http://marfarma.viewdocs.io/angular-pouch-model
Complete extraction of service into module. Add existing tests and make them work.
http://ci.testling.com/ - run browser tests with every push
https://github.com/larrymyers/jasmine-reporters - includes tap reporter required by ci.testling
Add support for binary attachements
If the angularjs specific parts are separated, potential to support server-side use of models via: https://github.com/nick-thompson/express-pouchdb - potentially useful for online / offline w/same code base ==> would require use of ES6 shim promises and replacement for angularcopy for deep copy -- consider using underscore for this and also 'extend' - http://underscorejs.org/#extend
Consider separating the angularjs dependency from the core of the app, allowing use with other frameworks, and server-side use via: https://github.com/nick-thompson/express-pouchdb - would require ES6 shim for promises and replacement of angularcopy, and maybe something else.
PhantomJS and Travis CI - http://ariya.ofilabs.com/2012/03/phantomjs-and-travis-ci.html
Support optional Active Model methods:
to_param() Link
Returns a string representing the object's key suitable for use in URLs, or nil if persisted? is false.
person = Person.new
person.to_param # => "1"
to_partial_path() Link
Returns a string identifying the path associated with the object. ActionPack uses this to find a suitable partial to represent the object.
person = Person.new
person.to_partial_path # => "people/person"
allow before-delete validations to prevent objects from being deleted if dependent 'child' objects exist, for example. relabel current validations before-save validations to distinguish between them.
Those options are passed directly to PouchDB.
The keys are PouchDB methods. Possible keys are post, put, remove, get, query, allDocs and spatial.
Refer to the PouchDB API Documentation for more options.
see: http://stackoverflow.com/a/16548179/149060
In short, omit those same properties from the serializableObj transformation.
add a chrome extension to the example programs as a test of library support for the platform
Add persistence to lineman angularjs books app as a usage example - compare the example apps here: https://github.com/jo/backbone-pouch - standard to-do with replication and local-only, MIT licensed so can be grabbed and adapted.
add a chrome extension to the example programs as a test of library support for the platform
Create project website using Github pages autobuild -- compare to the documentation here: https://github.com/jo/backbone-pouch
Add stability index notices in the documentation: http://nodejs.org/api/documentation.html#documentation_stability_index and publish initial version at 1.0.0
allow the model to 'hook' into persistence events like active-record does
If replication is active, changes will raise events - listen will allow related actively to be triggered
Add method to report whether object has been saved or not.
add an iphone app to the example programs as a test of library support for the platform
add an iphone app to the example programs as a test of library support for the platform
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.