Skip to content

Instantly share code, notes, and snippets.

View sanandnarayan's full-sized avatar

Anand Narayan sanandnarayan

View GitHub Profile
@sanandnarayan
sanandnarayan / gist:1253546
Created September 30, 2011 11:56 — forked from shripadk/gist:652819
Express authentication using Redis for session store and Couchdb for database (in coffeescript!)
###
Module dependencies
###
require.paths.unshift "#{__dirname}/lib/support/express-csrf/"
require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/"
express = require 'express'
app = module.exports = express.createServer()
RedisStore = require 'connect-redis'