Skip to content

Instantly share code, notes, and snippets.

View nickponline's full-sized avatar
🐙
Computers

Nicholas Pilkington nickponline

🐙
Computers
View GitHub Profile
@nickponline
nickponline / gist:2428924
Created April 20, 2012 14:03 — 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'