Couchapp for sharing images
Couchapp for sharing images, like Pinterest and Flickr but without the service agreements.
Before we begin, you'll need to install these:
Then run this:
npm install git://github.com/garbados/egg_chair.git npm install grunt
Now your app is live!
config.json for where your Couchapp will be pushed when you run
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
user.cloudant.com/egg_chair/_design/egg_chair/index.html, but that's not very pretty. To get pretty urls, like eggchair.maxthayer.org, 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.