Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save parkerproject/67b0c9e7b52366cef18cc6e1012ef009 to your computer and use it in GitHub Desktop.
Save parkerproject/67b0c9e7b52366cef18cc6e1012ef009 to your computer and use it in GitHub Desktop.
Node.js Hello World with Express.js
/**
* 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