From c0bff9bc873e8747961488899f1f68f7014353fd Mon Sep 17 00:00:00 2001 From: Ankit Mistry Date: Wed, 23 Mar 2022 12:10:45 +0530 Subject: [PATCH] gae ace adedd --- .../code/gae/app.yaml | 1 + .../code/gae/package.json | 9 +++++++++ .../code/gae/server.js | 7 +++++++ 3 files changed, 17 insertions(+) create mode 100644 01-gcp-associate-cloud-engineer-certification/code/gae/app.yaml create mode 100644 01-gcp-associate-cloud-engineer-certification/code/gae/package.json create mode 100644 01-gcp-associate-cloud-engineer-certification/code/gae/server.js diff --git a/01-gcp-associate-cloud-engineer-certification/code/gae/app.yaml b/01-gcp-associate-cloud-engineer-certification/code/gae/app.yaml new file mode 100644 index 0000000..5241dc2 --- /dev/null +++ b/01-gcp-associate-cloud-engineer-certification/code/gae/app.yaml @@ -0,0 +1 @@ +runtime: nodejs diff --git a/01-gcp-associate-cloud-engineer-certification/code/gae/package.json b/01-gcp-associate-cloud-engineer-certification/code/gae/package.json new file mode 100644 index 0000000..4c55ffa --- /dev/null +++ b/01-gcp-associate-cloud-engineer-certification/code/gae/package.json @@ -0,0 +1,9 @@ +{ + "name": "nodejs-getting-started", + "scripts": { + "start": "node server.js" + }, + "engines": { + "node": "10.x.x" + } +} diff --git a/01-gcp-associate-cloud-engineer-certification/code/gae/server.js b/01-gcp-associate-cloud-engineer-certification/code/gae/server.js new file mode 100644 index 0000000..ba71ec5 --- /dev/null +++ b/01-gcp-associate-cloud-engineer-certification/code/gae/server.js @@ -0,0 +1,7 @@ +var http = require('http'); +var handleRequest = function(request, response) { + response.writeHead(200); + response.end("

Hello World from GAE

"); +} +var www = http.createServer(handleRequest); +www.listen(8080);