There is a list of things you need to know about writing Cloud Functions using our boilerplate.
- 2.Functions implementation lives inside of /functions directory, e.g., /functions/hellowWorld.
- 3.Every function is an independent Node.js module with its own dependencies.
- 4.The entry point of every function is always the main.js file, e.g., /functions/helloWorld/main.js.
- 5.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.
You can check the https://github.com/nexxtway/functions.store-learning workspace example on GitHub to see how functions are created.