1const path = require('path')
2const express = require('express')
3
4const app = express()
5
6const port = process.env.PORT || 3000
7const publicDirectoryPath = path.join(__dirname, '../public')
8
9app.use(express.static(publicDirectoryPath))
10
11app.listen(port, () => {
12 console.log(`Server is up on port ${port}!`)
13})