{"repo":"GoogleCloudPlatform/functions-framework-nodejs","free":true,"listed":false,"github":"https://github.com/GoogleCloudPlatform/functions-framework-nodejs","clone":"git clone https://github.com/GoogleCloudPlatform/functions-framework-nodejs.git","description":"FaaS (Function as a service) framework for writing portable Node.js functions","language":"TypeScript","stars":1385,"topics":["nodejs","functions-as-a-service","google-cloud","cloud-functions"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"Functions Framework for Node.js [![Node unit CI][ff node unit img]][ff node unit link] [![Node lint CI][ff node lint img]][ff node lint link] [![Node conformace CI][ff node conformance img]][ff node conformance link] An open source FaaS (Function as a Service) framework based on Express for writing portable Node.js functions. The Functions Framework lets you write lightweight functions that run in many different environments, including: Google Cloud Run functions Your local development machine Cloud Run and Cloud Run for Anthos Knative-based environments The framework allows you to go from: To: All without needing to worry about writing an HTTP server or complicated request handling logic. Watch this video to learn more about the Node Functions Framework. Features - Spin up a local development server for quick testing - Invoke a function in response to a request - Automatically unmarshal events conforming to the CloudEvents spec - Portable between serverless platforms Installation Add the Functions Framework to your package.json file using npm . Quickstarts Quickstart: Hello, World on your local machine 1. Create an index.js file with the following contents: 1. Run the following command: 1. Open http://localhost:8080/ in your browser and see Hello, World . Quickstart: Set up a new project 1. Create a package.json file using npm init : 1. Create an index.js file with the following contents: 1. Now install the Functions Framework: 1. Add a start script to package.json , with co","default_branch":null,"files":null,"tree":[],"storefront":"/r/GoogleCloudPlatform","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/GoogleCloudPlatform/functions-framework-nodejs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}