calendarwatch_frontend/index.js

9 lines
275 B
JavaScript
Raw Normal View History

const express = require('express')
const path = require('path')
const PORT = process.env.PORT || 1234
express()
.use(express.static(path.join(__dirname,'public')))
.get('/', (req, res) => res.render('index'))
.listen(PORT, () => console.log(`Listening on ${ PORT }`))