CARVIEW |
Every repository with this icon (

Every repository with this icon (

Description: | Standalone CouchDB Blog, used by the O'Reilly CouchDB book |
Homepage: | https://books.couchdb.org |
Clone URL: |
git://github.com/jchris/sofa.git
Give this clone URL to anyone.
git clone git://github.com/jchris/sofa.git
|
name | age | message | |
---|---|---|---|
![]() |
.gitignore | Sun Jan 25 19:58:33 -0800 2009 | removed and ignored the .couchapprc file [jchris] |
![]() |
README.md | Sun Feb 22 19:21:21 -0800 2009 | removed last ruby reference [jchris] |
![]() |
_attachments/ | Sun Feb 08 16:34:07 -0800 2009 | new index links [jchris] |
![]() |
blog.json | Sun Jan 25 20:57:13 -0800 2009 | adding helper methods for asset, show, and list... [jchris] |
![]() |
couchapp.json | Sat Feb 21 13:06:07 -0800 2009 | move to couchapp.json [jchris] |
![]() |
helpers/ | Sat Feb 21 10:50:40 -0800 2009 | renames and removes [jchris] |
![]() |
lists/ | Sat Feb 21 11:07:29 -0800 2009 | fixed up the includes for new dir structure [jchris] |
![]() |
shows/ | Sat Feb 21 11:07:29 -0800 2009 | fixed up the includes for new dir structure [jchris] |
![]() |
templates/ | Sat Feb 21 10:50:40 -0800 2009 | renames and removes [jchris] |
![]() |
validate_doc_update.js | Thu Dec 11 17:39:37 -0800 2008 | added md5 lib so it can go client side [jchris] |
![]() |
views/ | Sat Feb 21 11:07:29 -0800 2009 | fixed up the includes for new dir structure [jchris] |
Sofa: Standalone CouchDB Blog
Sofa showcases the potential of pure CouchDB applications. It should provide an easy way for people to put thier thoughts online, anywhere there's a running Couch. It's just HTML, JavaScript and the magic of CouchDB.
Currently supports admin-only posting and anonymous comments.
Current News
Things are moving crazy fast around here right now as I bring this stuff up to ship-shape for the CouchDB book. I'll be renaming methods and stuff (if I find the time), any API feedback will be appreciated.
Install CouchDB
You'll also need CouchDB's svn trunk, which is currently a moving target, with regard to the new features, especially the _show
API, that Sofa relies on.
svn checkout https://svn.apache.org/repos/asf/couchdb/trunk
cd trunk && cat README
Once you have that installed and the tests passing, you can install CouchApp and the blog software.
Setup Admin Access
If you are going to put your blog in public, you'll want to follow the instructions on the CouchDB wiki about how to set up an Admin account.
Note that admin accounts are still new, and that they may have strange impacts on the ability to replicate design docs or databases that contain validation functions.
Install CouchApp
CouchApp makes it easy to edit application that are hosted in CouchDB, by keeping a correspondence between a set of files, and a CouchDB design document.
sudo easy_install couchapp
CouchApp is a set of utilities for developing standalone CouchDB applications You can learn more about the CouchApp project here.
Install Sofa
git clone git://github.com/jchris/sofa.git
cd sofa
couchapp push https://127.0.0.1:5984/blogdb
You'll want to edit the HTML and CSS to personalize your site. Don't worry, the markup is pretty basic, so it's easy to rework. Adding new features is just a few lines of JavaScript away.
Anytime you make edits to the on-disk version of Sofa, and want to see them in your browser, just run couchapp push https://127.0.0.1:5984/blogdb
again. You probably want to setup your .couchapprc
file. You should read the CouchApp readme to learn about that.
You can customize the blog title and other stuff in the blog.json
file.
Relax
Todo
- fulltext search?
- non-hack login method
- atom feed