diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 00000000..d2d8b01a --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,9 @@ +# This configuration file was automatically generated by Gitpod. +# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file) +# and commit this file to your remote git repository to share the goodness with others. + +tasks: + - init: npm install + command: npm run start + + diff --git a/index.js b/index.js index cbdbf26c..4eb01e48 100644 --- a/index.js +++ b/index.js @@ -3,11 +3,11 @@ var http = require('http'); var server = http.createServer(function(request, response) { response.writeHead(200, {"Content-Type": "text/plain"}); - response.end("Hello World!"); + response.end("hello how are you ?"); }); -var port = 80; +var port = 3000; server.listen(port); console.log("Server running at http://localhost:%d", port); diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..57e147fe --- /dev/null +++ b/package-lock.json @@ -0,0 +1,13 @@ +{ + "name": "nodejs-hello-world", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "nodejs-hello-world", + "version": "1.0.0", + "license": "MIT" + } + } +}