-
-
Save parkerproject/67b0c9e7b52366cef18cc6e1012ef009 to your computer and use it in GitHub Desktop.
Node.js Hello World with Express.js
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
/** | |
* Module Dependencies | |
*/ | |
var express = require('express'); | |
var app = express(); | |
/** | |
* Configuration | |
*/ | |
/** | |
* Routes | |
*/ | |
app.get('/', function(req, res) { | |
res.send('Hello World!\n'); | |
}); | |
/** | |
* Start Server | |
*/ | |
app.listen(3000); | |
console.log('Express listening on port 3000...'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment