Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created July 13, 2020 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BetterProgramming/922635e0c0e70bef7d93d5b18ac8cb6b to your computer and use it in GitHub Desktop.
Save BetterProgramming/922635e0c0e70bef7d93d5b18ac8cb6b to your computer and use it in GitHub Desktop.
const express = require('express')
const socketio = require('socket.io')
const app = express()
app.set('view engine', 'ejs')
app.use(express.static('public'))
app.get('/', (req, res)=> {
res.render('index')
})
const server = app.listen(process.env.PORT || 3000, () => {
console.log("server is running")
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment