Created
February 21, 2019 08:33
-
-
Save staskolukasz/5ffb1cf0618350e4557c1b8d943459b4 to your computer and use it in GitHub Desktop.
Sample Node.js application
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(); | |
const port = 3000; | |
app.get('/', (_, res) => { | |
res.send('Hello world!'); | |
}); | |
app.listen(port, () => { | |
console.log(`Listening on port ${port}`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment