Last active
October 14, 2018 14:08
-
-
Save lewisnyman/02512e96f5ee40d7d9b398f44dd747d9 to your computer and use it in GitHub Desktop.
Node.js hello world
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
node_modules |
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.listen(3000, function () { | |
console.log('Example app listening on port 3000!'); | |
}); | |
app.get('/', function (req, res) { | |
res.send('Hello World!'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment