Created
August 22, 2014 11:51
-
-
Save runeh/adf43f2601cef4c86457 to your computer and use it in GitHub Desktop.
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
// launch.js | |
var traceur = require('traceur'); | |
traceur.require('site.js'); | |
// site.js | |
var express = require('express'); | |
var app = express(); | |
app.get('/', (req, res) => res.send(getSalutation(req.query.name))); | |
function getSalutation(name = 'Anonymous') { | |
return `hello ${name}`; | |
} | |
console.log("Listening on 3131"); | |
app.listen(3131); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment