Created
September 28, 2016 10:43
-
-
Save creaux/8a3d4ebec12d1d99e197ed3e90158109 to your computer and use it in GitHub Desktop.
Static server for serving files from the same path.
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
import express from 'express'; | |
const app = express(); | |
app.use(express.static(__dirname)); | |
app.listen(8083, () => { | |
console.log('Static server is runing on port 8083'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment