[nodemon] restarting due to changes...
[nodemon] starting
babel-node ./src/server.js(node:9503) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
Server started on port 8080
MongoNetworkError: failed to connect to server [localhost:27017] on first connect [Error: connect ECONNREFUSED
127.0.0.1:27017 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1128:14) {
name: 'MongoNetworkError'
}]
at Pool.<anonymous> (/Volumes/MacBook Data/Oxagile/coupon-app/server/node_modules/mongodb/lib/core/topologies/server.js:438:11)
at Pool.emit (events.js:210:5)
at Pool.EventEmitter.emit (domain.js:476:20)
at /Volumes/MacBook Data/Oxagile/coupon-app/server/node_modules/mongodb/lib/core/connection/pool.js:562:14
at /Volumes/MacBook Data/Oxagile/coupon-app/server/node_modules/mongodb/lib/core/connection/pool.js:995:11
at /Volumes/MacBook Data/Oxagile/coupon-app/server/node_modules/mongodb/lib/core/connection/connect.js:32:7
at callback (/Volumes/MacBook Data/Oxagile/coupon-app/server/node_modules/mongodb/lib/core/connection/connect.js:280:5)
at Socket.<anonymous> (/Volumes/MacBook Data/Oxagile/coupon-app/server/node_modules/mongodb/lib/core/connection/connect.js:310:7)
at Object.onceWrapper (events.js:300:26)
at Socket.emit (events.js:210:5) {
name: 'MongoNetworkError'
}