Skip to content

Instantly share code, notes, and snippets.

@xola139
Last active March 6, 2020 14:43
Show Gist options
  • Save xola139/d34e4090ab1826cf4c2c46cebdac688f to your computer and use it in GitHub Desktop.
Save xola139/d34e4090ab1826cf4c2c46cebdac688f to your computer and use it in GitHub Desktop.
var express = require("express");
var app = express();
app.use(express.static(path.join(__dirname, 'dist')))
var server = app.listen(8081, function(){
var port = server.address().port;
console.log("Server started at http://localhost:%s", port);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment