1 REST JSONP server using mojolicious for <angular/>
4 <angular/>: Complex web apps made simple
8 mojolicious: the web in the box!
9 http://mojolicious.org/
12 This is my attempt to implement REST API described at:
14 http://docs.getangular.com/REST.Basic
16 using CouchDB HTTP view API
18 http://wiki.apache.org/couchdb/HTTP_view_API
20 to provide storage for experimenting with local datasets using angular $resource API.
21 You can also query CouchDB views $xhr("JSON", ...) in angular through angular-server.pl
24 At it's current stage it provides support for angular $resource get, query and $save
26 http://angularjs.org/Service:$resource
29 Replication of data between instances using angular REST API can be done with:
31 # create local CouchDB database
32 curl -X PUT http://localhost:5984/test
34 ./angular-replicate.pl \
35 http://dpavlin.getangular.com/data/conference \
36 http://localhost:3000/data/test
38 Replication is currently good only for initial import of data since it doesn't
39 support incremental replication and dies if data is allready present.
47 Optionally build angular to get single file download
55 ./angular-server.pl daemon --reload
58 Angular examples available:
60 - template/Cookbook - examples from wiki working against github version of angular
61 - template/conferece - conference submission example using mojolicious REST API server
62 - public/app/conference - new application layout with latest example confernce submission
64 curl -X PUT http://localhost:5984/conference/_design/symposium \
65 -d @public/app/conference/_design/symposium
70 + implement angular-server.pl which implements REST API supported by $resource in angular
71 + persistency to local CouchDB, and use views to query data