Let's look at how to create a Google Cloud Function on your local workstation with the following steps:
- Create a working directory on your workstation.
- Run the mkdir local-google-function command on your Terminal (macOS) or Command Prompt (Windows).
- Navigate to the directory that we just created by running the following command:
cd local-google-function
- Run the following command to create an empty file touch: index.json.
- Run the following command to create another empty file touch: package.json, as shown in the following screenshot:
The required folder and the folder structure are all available now for ...