Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoogleCloudPlatform/nodejs-docs-samples
/ startServer
Function
startServer
run/logging-manual/index.js:20–22 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
18
const
SERVICE = require(
'./package'
).name;
19
20
const
startServer = () => {
21
app.listen(PORT, () => console.log(`${SERVICE} listening on port ${PORT}`));
22
};
23
24
const
main =
async
() => {
25
if
(!process.env.GOOGLE_CLOUD_PROJECT) {
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected