archetype-resources.hello-rest.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of node-example-archetype
Show all versions of node-example-archetype
Creates a new node example
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello from the fabric8 NodeJS example');
}).listen(8080);
console.log('Server running at http://localhost:8080/');
© 2015 - 2025 Weber Informatics LLC | Privacy Policy