Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/topfunky/cappuccino-couchdb
A class for working with CouchDB documents from Cappuccino/Objective-J
https://github.com/topfunky/cappuccino-couchdb
Last synced: 11 days ago
JSON representation
A class for working with CouchDB documents from Cappuccino/Objective-J
- Host: GitHub
- URL: https://github.com/topfunky/cappuccino-couchdb
- Owner: topfunky
- Created: 2009-10-01T17:22:52.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2009-10-12T05:13:16.000Z (about 15 years ago)
- Last Synced: 2024-04-15T14:13:24.558Z (7 months ago)
- Language: Objective-J
- Homepage: http://peepcode.com
- Size: 1.46 MB
- Stars: 65
- Watchers: 5
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
CouchDB Library for Cappuccino
==============================More information, installation instructions, etc. coming soon.
![Demo Screenshot](http://topfunky.github.com/cappuccino-couchdb/images/demo-screenshot.png)
## Running the Demo
CouchDB's built-in webserver can serve static applications which can
access the database on the same host/port within browser security
limitations.Run a Cappuccino app under CouchDB by editing your local.ini (or
default.ini on CouchDBX). Add to the httpd_global_handlers section:cappuccino-couchdb = {couch_httpd_misc_handlers, handle_utils_dir_req, "/path/to/cappuccino-couchdb"}
Open [index.html](http://localhost:5984/cappuccino-couchdb/index.html)
in your browser to run the samples.http://localhost:5984/cappuccino-couchdb/index.html
NOTE: It's also possible to use the
[CouchApp](http://github.com/couchapp/couchapp) command line tool to
sync a Cappuccino application to CouchDB, but the size of an
application in development would be prohibitive. It's also
inconvenient to sync code to the server every time you make a
change in development.## Usage in Your Own Project
Copy the Classes/CouchDB directory and contents to your Cappuccino app.
@import "CouchDB/CouchDB.j"
The class was designed to mimic CouchDB's jquery.couch.js
(couchdb/trunk/share/www/script/jquery.couch.js). So some parts use
Javascript features rather than Objective-J features (inline function
callbacks, hash options).More documentation coming soon. In the meantime, see AppController.j.
## Known Bugs
* CouchDB treats a + in a filename as a space on disk, so naming
Objective-C categories as CPDictionary+ParamUtils.j will
fail. Hopefully this will be fixed in a future release of CouchDB.## TODO
* Better error handling and callbacks
* Examples of usage with a native Objective-J model.## Author
Geoffrey Grosenbach, [PeepCode Screencasts](http://peepcode.com)
## References
* [Cappuccino](http://cappuccino.org)
* [CouchDB](http://couchdb.apache.org/)
* [CouchDB Screencast at PeepCode](http://peepcode.com/products/couchdb-with-rails)