Couchapp for sharing images

Egg Chair

Couchapp for sharing images, like Pinterest and Flickr but without the service agreements.

Before we begin, you'll need to install these:

  • node.js: download and install manually.
  • yeoman: npm install -g yo
  • grunt: npm install -g grunt-cli

Then run this:

npm install git://
npm install

Now your app is live!

Check config.json for where your Couchapp will be pushed when you run grunt.

If you're using Cloudant, head to the permissions dashboard for your app and check "Read" for the row "Everyone else". This lets you share your images with the world.

If you're using CouchDB, open up Futon, go to your app, click "Security", and make sure under "Members" that "Names" is [] but "Roles" is ["reader"]. That makes it publicly readable.

By default, your app will live at some url like, but that's not very pretty. To get pretty urls, like, go to your Cloudant dashboard, and create a Virtual Host pointing from some URL you control, to the _rewrite_ url of your app, like this:

Use your DNS provider (ex: namecheap) to configure your subdomain settings. Here's what mine looks like: (note: only the part about sub-domains matters):

Egg Chair comes with a rewrites.json file that takes care of all the URL rewrites. If you want to change the URL structure, change that file.