Created
January 7, 2019 17:38
-
-
Save perpetual-hydrofoil/cff98012ac1f6b841818f4c15224e92c to your computer and use it in GitHub Desktop.
Express Hello World (quick start)
This file contains hidden or 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
/* index.js | |
* Express Hello World | |
* first: | |
* npm i express | |
* node index.js | |
*/ | |
const express = require('express'); | |
const app = express(); | |
app.get('/', function(req,res) { | |
res.send("Hello, World!"); | |
}); | |
app.listen(8000); | |
console.log("Please visit http://localhost:8000"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment