functions-framework-dart icon indicating copy to clipboard operation
functions-framework-dart copied to clipboard

Create More Examples

Open grant opened this issue 4 years ago • 5 comments

To launch to Cloud Functions, we should add examples for a majority of the samples seen in the docs.


For example, here is the doc for the Cloud Functions quickstart:

https://cloud.google.com/functions/docs/quickstart-nodejs

We should add this sample to the examples folder: https://github.com/GoogleCloudPlatform/functions-framework-dart/tree/main/examples/

grant avatar Dec 07 '20 17:12 grant

Speaking of creating more examples, do we know what it would take to get Dart snippets included in language tabs like this?

craiglabenz avatar Dec 28 '20 22:12 craiglabenz

  • How to handle different HTTP verbs?
  • How to handle request headers?

jmewes avatar Feb 23 '21 07:02 jmewes

  • How to handle firebase auth with custom claims

mrgithub avatar Mar 12 '21 00:03 mrgithub

WRT examples, I would find it helpful if shelf related behavior was clearly distinguished from behaviors provided by gcp.

Developers who investigate this package may be relatively new to any combination of: Dart, shelf, GCP in general, this gcp package. By separating shelf and gcp behaviors, developers who are new to shelf can still appreciate the gcp package purpose and value.

matthew-carroll avatar Nov 09 '22 21:11 matthew-carroll

@matthew-carroll – yup. This package is 60% things specific to shelf. Wil do!

kevmoo avatar Nov 09 '22 21:11 kevmoo