Skip to content

Instantly share code, notes, and snippets.

@pmlopes
Created July 10, 2015 14:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save pmlopes/e7ec5d0d2499577d1512 to your computer and use it in GitHub Desktop.
vert.x3 for javascript developers
{
"name": "vertx3-hello",
"private": true,
"dependencies": {
"vertx3-min": "3.0.0-1"
},
"scripts": {
"start": "./node_modules/.bin/vertx run server.js"
}
}
vertx.createHttpServer()
.requestHandler(function (req) {
req.response()
.putHeader("content-type", "text/plain")
.end("Hello from Vert.x!");
}).listen(8080);
@pmlopes
Copy link
Author

pmlopes commented Jul 10, 2015

To run you code: npm start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment