Created
May 26, 2019 06:50
-
-
Save jthegedus/f208962fdd087beaca4490be68812463 to your computer and use it in GitHub Desktop.
Cloud Run web server and dependencies example
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
exports.helloWorld = (req, res) => { | |
res.send('Hello, World'); | |
}; |
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
{ | |
"name": "src", | |
"version": "1.0.0", | |
"main": "./function.js", | |
"license": "MIT", | |
"scripts": { | |
"start": "functions-framework --target=helloWorld" | |
}, | |
"dependencies": { | |
"@google-cloud/functions-framework": "^1.1.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment