Created
April 4, 2019 13:57
-
-
Save Jaggler3/2d70b2776e42b901ffb31e63f1c6cd03 to your computer and use it in GitHub Desktop.
Express Static Folder
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 app = express(); | |
app.use(express.static('www')); | |
app.listen(3000, () => { | |
console.log("Listening on port 3000"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment