We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 799997f commit faaa590Copy full SHA for faaa590
index.js
@@ -0,0 +1,13 @@
1
+
2
+const
3
+ http = require("http");
4
5
+const server = http.createServer((request, response) => {
6
+ response.writeHead(200, {"Content-Type": "text/plain"});
7
+ response.end("Hello World!");
8
+});
9
10
+const port = process.env.PORT || 1337;
11
+server.listen(port);
12
13
+console.log("Server running at http://localhost:%d", port);
package.json
+{
+ "name": "nodejs-app-service",
+ "description": "Simple Hello World Node.js sample for Azure App Service",
+ "version": "0.0.1",
+ "license": "MIT",
+ "author": "rsantosdev",
+ "engines": {
+ "node": ">=6.9.1"
+ },
+ "scripts": {
+ "start": "node index.js"
+ }
+}
0 commit comments