0.1.1 • Published 12 years ago

egg-chair v0.1.1

Weekly downloads
2
License
-
Repository
github
Last release
12 years ago

Egg Chair

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

Egg Chair

Install

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://github.com/garbados/egg_chair.git
npm install
grunt

Now your app is live!

Configuration

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

Permissions

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.

Enabling Pretty URLs with Cloudant

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:

Rewrite screencap

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):

Sub-domain screencap

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.

0.1.1

12 years ago

0.1.3

12 years ago

0.1.0

12 years ago