Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var express = require('express');
- var couchdb = require('couchdb');
- var client = couchdb.createClient({port:5984,host:'localhost'});
- var db = client.db('tornado_development');
- app.get('/', function(req, res, next){
- db.view('Song','all', function(err, records){
- if(err){
- next(err);
- }else{
- res.send('oh cool... we found something');
- };
- });
- });
Add Comment
Please, Sign In to add comment