Skip to content

Commit

Permalink
pointing mongoose at orchard
Browse files Browse the repository at this point in the history
  • Loading branch information
Guy Ellis committed Mar 13, 2014
1 parent c51ce3e commit 8b4660d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions app.js
Expand Up @@ -37,6 +37,7 @@ app.get('/customer/:id/path/:num', function(req, res){
res.send('customer is ' + req.params.id +
' num is ' + req.params.num);
});

app.get('/cust', function(req, res){
res.send('cust is ' + req.query['id'] +
' num is ' + req.query['num']);
Expand Down
2 changes: 1 addition & 1 deletion models/dataman.js
Expand Up @@ -2,7 +2,7 @@
var mongoose = require( 'mongoose' );

// Build the connection string
var dbURI = 'mongodb://localhost/test';
var dbURI = 'mongodb://localhost/orchard';

// Create the database connection
mongoose.connect(dbURI);
Expand Down
6 changes: 4 additions & 2 deletions views/index.jade
@@ -1,5 +1,7 @@
extends layout

block content
h1= title
p Welcome to #{title}
h1= title
p Welcome to #{title}

a(href="/tree") Orchard

0 comments on commit 8b4660d

Please sign in to comment.