Created
January 28, 2019 22:55
-
-
Save mikolajpe/3f6631d7613c2cc6f8c720cb8bf06cd5 to your computer and use it in GitHub Desktop.
JavaScript Node Express Rest Api Hello World example
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 app = require('express')(); | |
app.get('/', (req, res) => { | |
res.send('Hello world!'); | |
}); | |
app.listen(80, () => { | |
console.log('App listening on port 80!'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment