forked from ankit25587/course-material
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dffd86a
commit c0bff9b
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
01-gcp-associate-cloud-engineer-certification/code/gae/app.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
runtime: nodejs |
9 changes: 9 additions & 0 deletions
9
01-gcp-associate-cloud-engineer-certification/code/gae/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"name": "nodejs-getting-started", | ||
"scripts": { | ||
"start": "node server.js" | ||
}, | ||
"engines": { | ||
"node": "10.x.x" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
01-gcp-associate-cloud-engineer-certification/code/gae/server.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
var http = require('http'); | ||
var handleRequest = function(request, response) { | ||
response.writeHead(200); | ||
response.end("<h1>Hello World from GAE </h1>"); | ||
} | ||
var www = http.createServer(handleRequest); | ||
www.listen(8080); |