@@ -12,11 +12,12 @@ for writing portable Node.js functions
1212The Functions Framework lets you write lightweight functions that run in many
1313different environments, including:
1414
15- * [ Google Cloud Functions] ( https://cloud.google.com/functions/ )
16- * Your local development machine
17- * [ Cloud Run] ( https://cloud.google.com/run/ ) and [ Cloud Run for Anthos] ( https://cloud.google.com/anthos/run )
18- * [ Knative] ( https://github.com/knative/ ) -based environments
19- * [ OpenFunction] ( https://github.com/OpenFunction/OpenFunction )
15+ * [ Google Cloud Functions] ( https://cloud.google.com/functions/ )
16+ * Your local development machine
17+ * [ Cloud Run] ( https://cloud.google.com/run/ ) and [ Cloud Run for Anthos] ( https://cloud.google.com/anthos/run )
18+ * [ Knative] ( https://github.com/knative/ ) -based environments
19+ * [ Dapr] ( https://dapr.io/ ) -based environments
20+ * [ OpenFunction] ( https://github.com/OpenFunction/OpenFunction )
2021
2122The framework allows you to go from:
2223
@@ -45,11 +46,11 @@ handling logic.
4546
4647## Features
4748
48- - Spin up a local development server for quick testing
49- - Invoke a function in response to a request
50- - Automatically unmarshal events conforming to the
49+ * Spin up a local development server for quick testing
50+ * Invoke a function in response to a request
51+ * Automatically unmarshal events conforming to the
5152 [ CloudEvents] ( https://cloudevents.io/ ) spec
52- - Portable between serverless platforms
53+ * Portable between serverless platforms
5354
5455## Installation
5556
@@ -77,7 +78,7 @@ npm install @openfunction/functions-framework
7778 npx @openfunction/functions-framework --target=helloWorld
7879 ` ` `
7980
80- 1. Open http: // localhost:8080/ in your browser and see _Hello, World_.
81+ 1. Open < http: // localhost:8080/> in your browser and see _Hello, World_.
8182
8283### Quickstart: Set up a new project
8384
@@ -132,7 +133,7 @@ command-line arguments:
1321331. Install [Docker](https : // store.docker.com/search?type=edition&offering=community) and the [`pack` tool](https://buildpacks.io/docs/install-pack/).
133134
1341351. Build a container from your function using the Functions [buildpacks](https : // github.com/GoogleCloudPlatform/buildpacks):
135-
136+
136137 ` ` ` sh
137138 pack build \
138139 --builder openfunction/builder-node:v2-16.13 \
@@ -142,14 +143,14 @@ command-line arguments:
142143 ` ` `
143144
1441451. Start the built container :
145-
146+
146147 ` ` ` sh
147148 docker run --rm -p 8080:8080 my-first-function
148149 # Output: Serving function...
149150 ` ` `
150151
1511521. Send requests to this function using `curl` from another terminal window:
152-
153+
153154 ```sh
154155 curl localhost:8080
155156 # Output: Hello, World!
@@ -249,7 +250,7 @@ To enable the CloudEvent functions, you must list the Functions Framework as a d
249250```json
250251{
251252 "dependencies": {
252- "@openfunction/functions-framework": "~0.3.6 "
253+ "@openfunction/functions-framework": "~0.4.0 "
253254 }
254255}
255256```
0 commit comments