'use strict'; const http = require('http'); const PORT = process.env.PORT || 3000; const VERSION = process.env.APP_VERSION || '0.0.0'; const SERVICE = 'tf-docs'; const server = http.createServer((req, res) => { res.statusCode = 200; res.setHeader('Content-Type', 'text/html; charset=utf-8'); res.end(` ${SERVICE}

${SERVICE}

version: ${VERSION}

`); }); server.listen(PORT, () => { console.log(`[${SERVICE}] listening on :${PORT} (version ${VERSION})`); });