aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
blob: 792950a7a63ff1d86b546c7249a265209a3cd292 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
const express = require('express');
const path = require('path');

const app = express();

app.get('/', (req, res) => {
	res.sendFile(path.join(__dirname, 'public', 'index.html'));
});

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

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