A tiny CouchApp for showing presentations. Designed to use a minimal set of Javascript libraries and work in Javascript-less browsers.
- CouchDB
jquery.presentation.js
for the cool presentation effects and base styles and markup.jquery.couchdb.js
(included with CouchDB) -- CouchDB helpers for jQueryjquery.couchapp.js
-- CouchApp helpersevently
-- for event handling, authentication, and synchronized presentationmustache
-- templating, both in the browser and on the server side
- One document per presentation
_id
-- Unique ID of the presentation. Use anything that Couch accepts as a unique document identifier; plain strings work fine are are easy to browse in Futon, but beware: once set, it can't be changed._rev
-- Auto-generated by CouchDB; the unique ID of the revision of this document. Not editable.title
-- Human-readable title for the presentation, e.g., "CouchDB: rocking my socks off since 2008"author
-- Name and profile of the user who authored this presentation.colophon
-- Copyright and contact information to place at the bottom of each slide, any HTML will be displayed unescaped.style
-- The name of a presentation style.is_presentation
-- Always set this totrue
.slides
-- Array of "slide" objects, each has the following schema:content
-- Raw HTML content of the slide.image
(optional) -- an image attachment, with the following schema:src
-- filename or URL of the imagealt
(optional) -- Alternate text for the image.attribution
(optional) -- Any attribution for the image; for example, for Creative Commons-licensed images.attribution_url
(optional) -- link to original image source
Just use it live from slides.fredalger.net. Simple.
Want your own copy? Replicate the example from my CouchDB server here to your local CouchDB instance.
- Pull up Futon; if you're working with CouchDBX or a similar package, that will be at http://localhost:5984/_utils
- If you've fixed the "Admin Party" and now have an administrator log in, click "Log In" in the lower-right corner and log yourself in. If you haven't fixed it, I won't tell anyone... but you should really click "Fix This" and set up an admin.
- All logged in? Awesome. Make a new database name
myslides
by clicking "Create Database" at the top. - Congratulations, you're the proud owner of a brand-new empty database.
- Click "Replicator" in the right-hand pane, under the dude on the couch.
- Click "Remote database" on the left and enter
http://fredalger.net:5984/couchdb-projector-example
in the "Replicate changes from" box. Under "to" on the right, selectmyslides
from the list of databases. - Click Replicate.
- You're done. Pull up your own personal presentation-making tool in the browser at http://localhost:5984/myslides/
I'm assuming you know what to do with a CouchApp. Download or check out a copy of this repo and couchapp push
it wherever you'd like.