import express from 'express';
import logger from 'morgan';
import bodyParser from 'body-parser';
import passport from 'passport';
import routes from './server/routes';



const app = express();
const http = require('http');

const port = parseInt(process.env.PORT, 10) || 8080;
app.use(logger('dev'));

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(passport.initialize());
app.use(passport.session());
routes(app);

const server = http.createServer(app);
server.listen(port, () => console.log('The server is running on port 8080'));

@@ -124,16 +124,41 @@
 sport';%0A
+import http from 'http';%0A
 import r
@@ -188,18 +188,16 @@
 utes';%0A%0A
-%0A%0A
 const ap
@@ -215,39 +215,8 @@
 ();%0A
-const http = require('http');%0A%0A
 cons
@@ -264,16 +264,17 @@
 %7C 8080;%0A
+%0A
 app.use(
@@ -289,17 +289,16 @@
 dev'));%0A
-%0A
 app.use(

fix eslint errors