scotch-io / react-tweets

Code repository for the tutorial by @kenwheeler: Build A Real-Time Twitter Stream with Node and React.js
http://scotch.io/tutorials/javascript/build-a-real-time-twitter-stream-with-node-and-react-js
697 stars 342 forks source link

Fixed Mongoose open() Deprecation Error that Broke Application #26

Closed jasperfurniss closed 6 years ago

jasperfurniss commented 6 years ago

Inside server.js (Lines 22-25) it should look like this:

// Connect to our mongo database mongoose.connect('mongodb://localhost/react-tweets', { useMongoClient: true, });

See more here: http://mongoosejs.com/docs/connections.html#use-mongo-client