aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
blob: a8fea3e59a8485bb3398784538ec25e48b41851e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const express = require('express');
const path = require('path');
const logger = require('./middleware/logger.js');

const app = express();

// Init middleware
// app.use(logger);

// Set static directory
app.use(express.static(path.join(__dirname, 'public')));

const PORT = process.env.PORT || 3000;

app.listen(PORT, () => console.log(`Server started on port ${PORT}`));