Skip to content

Instantly share code, notes, and snippets.

@vdurmont
Last active December 27, 2015 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vdurmont/7360435 to your computer and use it in GitHub Desktop.
Save vdurmont/7360435 to your computer and use it in GitHub Desktop.
Basic Express app
var express = require('express');
var app = express();
app.get('/', function(req, res){
var name = req.query.name != null ? req.query.name : "World";
res.send('Hello, '+name+'!');
});
app.listen(3333);
console.log('Running on port 3333!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment