Created
July 13, 2020 20:40
-
-
Save BetterProgramming/922635e0c0e70bef7d93d5b18ac8cb6b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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