text: import express from 'express'
  import mongoose from 'mongoose'
  import cors from 'cors'
  
  const app = express()
  
  const server = require('http').Server(app)
  const io = require('socket.io')(server)
  
  mongoose.connect(
      "mongodb://goweek:goweek123@ds255403.mlab.com:55403/goweek-backend",
      {
          useNewUrlParser: true
      }
  )
  
  app.use((req, res, next) => {
      req.io = io
  
      return next()
  })
  
  app.use( cors() )
  app.use( express.json() )
  app.use( require('./routes') )
  
  server.listen(3000, () => {
      console.log('Server started on port 3000')
  })