Created
November 19, 2021 10:14
-
-
Save lamorbidamacchina/40cb14a0816935d7b2b45d9e6c397672 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
var express = require('express'); | |
var app = express(); | |
app.use(express.static('public')); | |
var http = require('http').Server(app); | |
var port = process.env.PORT || 3001; | |
app.get('/', function(req, res) { | |
res.sendFile(__dirname + '/public/default.html'); | |
}); | |
http.listen(port, function() { | |
console.log('listening on *: ' + port); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment