Writing Functions
Build the Cloud Functions by writing JavaScript code.
Last updated
Was this helpful?
Build the Cloud Functions by writing JavaScript code.
Last updated
Was this helpful?
There is a list of things you need to know about writing Cloud Functions using our boilerplate.
You can write your function in JavaScript.
Functions implementation lives inside of /functions directory, e.g., /functions/hellowWorld.
Every function is an independent Node.js module with its own dependencies.
The entry point of every function is always the main.js file, e.g., /functions/helloWorld/main.js.
Every function needs a configuration file with metadata about the function.
You can also build your functions by writing "TypeScript" as long as you push a build code that contains the main.js file at the root of each function.
understand the function folder structure.
implement the configuration of your function.
define the trigger of your function.
define the environment variables of your function.
explain how your function works.