peterbraden / browsercouch Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mikeal/browsercouch
CouchDB in the browser
This project forked from mikeal/browsercouch
CouchDB in the browser
Hi,
I tried to run specs, but I failed miserably.
I run couchdb on my ubuntu.
I open browsercouch/html/js/spec/spec.html in Chrome.
Browser console yields:
original: {"_id":"1","name":"Bob","_rev":"1-35207413509488108000"}
new: {"_id":"1","name":"Bill"}
changes: {"results":[{"seq":2,"id":"1","changes":[{"rev":"2-98626305442303430000"}],"deleted":true}],"last_seq":2}
DELETE: http://localhost:5984/rep/
Parse JSON failed:
PUT: http://localhost:5984/rep/
Parse JSON failed:
... and so on.
And couchdb yields:
Apache CouchDB 1.0.0 (LogLevel=info) is starting.
Apache CouchDB has started. Time to relax.
[info] [<0.2477.0>] 127.0.0.1 - - 'OPTIONS' /rep/ 405
[info] [<0.2477.0>] 127.0.0.1 - - 'OPTIONS' /rep/ 405
[info] [<0.2477.0>] 127.0.0.1 - - 'OPTIONS' /rep/_bulk_docs 405
[info] [<0.2477.0>] 127.0.0.1 - - 'OPTIONS' /rep/_ensure_full_commit 405
[info] [<0.2477.0>] 127.0.0.1 - - 'GET' /rep/_all_docs?include_docs=true 304
[info] [<0.2685.0>] 127.0.0.1 - - 'OPTIONS' /rep/ 405
[info] [<0.2685.0>] 127.0.0.1 - - 'OPTIONS' /rep/ 405
[info] [<0.2685.0>] 127.0.0.1 - - 'OPTIONS' /rep/_bulk_docs 405
[info] [<0.2685.0>] 127.0.0.1 - - 'OPTIONS' /rep/_ensure_full_commit 405
[info] [<0.2685.0>] 127.0.0.1 - - 'OPTIONS' /rep/_bulk_docs 405
[info] [<0.2685.0>] 127.0.0.1 - - 'OPTIONS' /rep/_ensure_full_commit 405
[info] [<0.2685.0>] 127.0.0.1 - - 'GET' /rep/_all_docs?include_docs=true 304
[info] [<0.2687.0>] 127.0.0.1 - - 'OPTIONS' /rep/ 405
[info] [<0.2687.0>] 127.0.0.1 - - 'OPTIONS' /rep/ 405
[info] [<0.2687.0>] 127.0.0.1 - - 'OPTIONS' /rep/_bulk_docs 405
[info] [<0.2687.0>] 127.0.0.1 - - 'OPTIONS' /rep/_ensure_full_commit 405
[info] [<0.2687.0>] 127.0.0.1 - - 'OPTIONS' /rep/_bulk_docs 405
[info] [<0.2687.0>] 127.0.0.1 - - 'OPTIONS' /rep/_ensure_full_commit 405
[info] [<0.2687.0>] 127.0.0.1 - - 'GET' /rep/_all_docs?include_docs=true 304
[info] [<0.2689.0>] 127.0.0.1 - - 'OPTIONS' /rep/ 405
[info] [<0.2689.0>] 127.0.0.1 - - 'OPTIONS' /rep/ 405
[info] [<0.2689.0>] 127.0.0.1 - - 'OPTIONS' /rep/_bulk_docs 405
[info] [<0.2689.0>] 127.0.0.1 - - 'OPTIONS' /rep/_ensure_full_commit 405
[info] [<0.2689.0>] 127.0.0.1 - - 'GET' /rep/_all_docs?include_docs=true 304
[info] [<0.2691.0>] 127.0.0.1 - - 'OPTIONS' /sync/ 404
[info] [<0.2691.0>] 127.0.0.1 - - 'OPTIONS' /sync/ 404
[info] [<0.2691.0>] 127.0.0.1 - - 'OPTIONS' /sync/_bulk_docs 404
[info] [<0.2691.0>] 127.0.0.1 - - 'OPTIONS' /sync/_ensure_full_commit 404
[info] [<0.2691.0>] 127.0.0.1 - - 'OPTIONS' /sync/ 404
[info] [<0.2691.0>] 127.0.0.1 - - 'OPTIONS' /sync/ 404
[info] [<0.2691.0>] 127.0.0.1 - - 'OPTIONS' /sync/ 404
[info] [<0.2691.0>] 127.0.0.1 - - 'OPTIONS' /sync/ 404
[info] [<0.2691.0>] 127.0.0.1 - - 'OPTIONS' /sync/ 404
[info] [<0.2691.0>] 127.0.0.1 - - 'OPTIONS' /sync/ 404
[info] [<0.2691.0>] 127.0.0.1 - - 'OPTIONS' /cloud/ 404
[info] [<0.2691.0>] 127.0.0.1 - - 'OPTIONS' /cloud/ 404
[info] [<0.2691.0>] 127.0.0.1 - - 'OPTIONS' /cloud/1 404
[info] [<0.2691.0>] 127.0.0.1 - - 'GET' /cloud/_changes?include_docs=true&since=0 404
The same happens on Couchdb 0.11, Firefox, and another Linux. I really tried to understand this but I don't. Jquery.couch.js on futon works just fine.
http://peterbraden.github.com/browsercouch does not exist.
Need to store url, seq number for each replication
Apparently Couch keeps these in memory :
"At the time of writing, CouchDB doesn’t remember continuous replications over a server restart. For the time being, you are required to trigger them again, when you restart CouchDB. In the future, CouchDB will allow you to define permanent continuous replications that survive a server restart without you having to do anything."
So we don't have storage precedent to copy
It's kinda uncovered at the moment. Also, probably want to overwrite the ajax method to allow remote sync testing.
Perhaps QUnit or something. There's no point maintaining a custom test runner.
Prerequisite for porting futon
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.