// Dependencies
import express from 'express';

// Routes
import routes from './routes/main-routes';

// consts
const app = express();

// Set public path
app.use(express.static(__dirname + '/public'));

// Route /
app.use('/', routes);

// Start server
const server = app.listen(3000, () => {
	// Extract port
  const {port} = server.address();

  // string interpolation:
  console.log(`React ES6 Server Side Render app listening at http://localhost:${port}`);
});

@@ -39,16 +39,41 @@
 xpress';
+%0Aimport path from 'path';
 %0A%0A// Rou
@@ -165,19 +165,165 @@
 Set 
-public path
+view engine to jade%0Aapp.set('views', path.join(__dirname, 'views'));%0Aapp.set('view options', %7B pretty: true %7D)%0Aapp.set('view engine','jade');%0A%0A// Middlewares
 %0Aapp
@@ -342,16 +342,26 @@
 .static(
+path.join(
 __dirnam
@@ -379,21 +379,10 @@
 c'))
+)
 ;
-%0A%0A// Route /
 %0Aapp

Set jade engine