Skip to content

Instantly share code, notes, and snippets.

@jthegedus
Created May 26, 2019 06:50
Show Gist options
  • Save jthegedus/f208962fdd087beaca4490be68812463 to your computer and use it in GitHub Desktop.
Save jthegedus/f208962fdd087beaca4490be68812463 to your computer and use it in GitHub Desktop.
Cloud Run web server and dependencies example
exports.helloWorld = (req, res) => {
res.send('Hello, World');
};
{
"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