Skip to content
This repository

removed express.createServer() #192

Merged
merged 1 commit into from over 1 year ago

2 participants

Erwin Poeze Addy Osmani
Erwin Poeze

express.createServer() is depreciated in express v3.x in favor of express()

Erwin Poeze express.createServer() replaced
express.createServer() is depreciated in express v3.x in favor of express()
081020d
Addy Osmani addyosmani merged commit 4d194e3 into from
Addy Osmani
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Oct 12, 2012
Erwin Poeze express.createServer() replaced
express.createServer() is depreciated in express v3.x in favor of express()
081020d
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 index.md
4 index.md
Source Rendered
@@ -3780,10 +3780,10 @@ var application_root = __dirname,
3780 3780 mongoose = require('mongoose');
3781 3781 ```
3782 3782
3783   -Next, create a new Express server. `express.createServer()` is a simple way of creating an instance of express.HTTPServer, which we'll be using to pass in our routes.
  3783 +Next, create a new Express server. `express()` is a simple way of creating an instance of express.HTTPServer, which we'll be using to pass in our routes.
3784 3784
3785 3785 ```javascript
3786   -var app = express.createServer();
  3786 +var app = express();
3787 3787 ```
3788 3788
3789 3789 After this, connect Mongoose up to a database (in our case, localhost should suffice). Should you require the ability to pass in authentication information, here's a sample containing all of the supported URL parameters: `mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]`

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.