Created
August 1, 2017 10:36
-
-
Save andrewdavidcostello/5283241b1aa568f176ccabbc85d3efe5 to your computer and use it in GitHub Desktop.
Express Hello World
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
var express = require('express'), | |
app = express(), | |
port = process.env.PORT || 3000; | |
var listener = app.listen(port, () => { | |
console.info("==> ✅ Server is listening"); | |
console.info("==> 🌎 Go to localhost:%s", port); | |
}); | |
app.route('/') | |
.get((req, res) => { | |
res.send('Hello World!'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment