Skip to content

Instantly share code, notes, and snippets.

@ethereal-engineer
Created August 28, 2013 13:09
Show Gist options
  • Save ethereal-engineer/6365868 to your computer and use it in GitHub Desktop.
Save ethereal-engineer/6365868 to your computer and use it in GitHub Desktop.
Quickly test your app's smart banner using node.js and this snippet!
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
res.write('<meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL">');
res.end('Check this out with your iDevice');
}).listen(1337, '0.0.0.0');
console.log('Server running at http://<thisMachine>:1337/');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment