X-Git-Url: http://git.rot13.org/?p=angular-mojolicious.git;a=blobdiff_plain;f=README;h=afebd1bd1c56279c0f827ad5db6a2b52f910acc8;hp=dd7aa1383f1a1cbd12ec61f579b57f613b8f0322;hb=e9c2a275a3b3adf5e3f3d0af6e6ae0142ced6485;hpb=44dbf207741b4c06928dedd0ff4ac940e21b3fb8 diff --git a/README b/README index dd7aa13..afebd1b 100644 --- a/README +++ b/README @@ -17,7 +17,8 @@ using CouchDB HTTP view API http://wiki.apache.org/couchdb/HTTP_view_API -to provide storage for experimenting with local datasets using angular. +to provide storage for experimenting with local datasets using angular $resource API. +You can also query CouchDB views $xhr("JSON", ...) in angular through angular-server.pl At it's current stage it provides support for angular $resource get, query and $save @@ -25,9 +26,14 @@ At it's current stage it provides support for angular $resource get, query and $ http://angularjs.org/Service:$resource -Server also supports replication using same API which can be triggered with +Replication of data between instances using angular REST API can be done with: - http://localhost:3000/_replicate?from=http://dpavlin.getangular.com/data/conference/ + # create local CouchDB database + curl -X PUT http://localhost:5984/test + + ./angular-replicate.pl \ + http://dpavlin.getangular.com/data/conference \ + http://localhost:3000/data/test Replication is currently good only for initial import of data since it doesn't support incremental replication and dies if data is allready present. @@ -53,8 +59,14 @@ Angular examples available: - template/Cookbook - examples from wiki working against github version of angular - template/conferece - conference submission example using mojolicious REST API server +- public/app/conference - new application layout with latest example confernce submission + + curl -X PUT http://localhost:5984/conference/_design/symposium \ + -d @public/app/conference/_design/symposium -Planned features: +Roadmap: -- run queries against data using REST API (currently only simple get is supported) ++ implement angular-server.pl which implements REST API supported by $resource in angular ++ persistency to local CouchDB, and use views to query data +- tests