Skip to content

Instantly share code, notes, and snippets.

@runeh
Created August 22, 2014 11:51
Show Gist options
  • Save runeh/adf43f2601cef4c86457 to your computer and use it in GitHub Desktop.
Save runeh/adf43f2601cef4c86457 to your computer and use it in GitHub Desktop.
// 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