Skip to content
couchapp that serves static file contents e.g. blog posts
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_docs
shows
templates
updates
vendor
.couchappignore
.couchapprc
.ericaignore
LICENSE
README.md
_id
couchapp.json
language
rewrites.json
validate_doc_update.js

README.md

static CouchDB blog

This couchapp (CouchDB design doc) is a Boilerplate/Prototype/Experiment to investigate how the Jekyll concept can adopted by using a CouchDB.

The couchapp serves finally static ressources - blog posts. The static files are stored as attachments to JSON documents which representing the source code (contents in markdown) of the posts.

You may want to read the full story. It also describes the measured performance advantages. Finally you can read the commit/tag history to review the implementation details.

installation

You will need a CouchDB installed/hosted and one of the upload tools couchapp or erica

Clone the repo and enter the directory.

$ couchapp push http://admin:password@couchdbdomain:port/databasename

Upload the couchapp. Alternatively upload targets can be defined in the .couchapprc file.

The repo contains a test post doc which will uploaded automatically with the couchapp. To test the installation view http://couchdbdomain:port/databasename/_design/staticcouchblog/_rewrite/post/test-post/preview

Because thats a huuuge URI you may also want to enable a vhost in the local.ini.

[vhosts]
blog.domain.tld=databasename/_design/staticcouchblog/_rewrite

get in touch

Feel free to open issues, comment code lines ... it's a maintained thing!

You can’t perform that action at this time.