nodeboot-server-google-cloud-functions
Installation
SKILL.md
Node-Boot on Google Cloud Functions
Use @nodeboot/google-cloud-functions-server when one Google Cloud Function should front the whole Node-Boot router.
Fresh start or existing app?
Read ../_shared/fresh-vs-existing.md first, then apply it here:
- Fresh start:
npx degit nodejs-boot/node-boot/samples/sample-google-cloud-functions my-app. - Existing app: look for
functions.http("api", ...)insrc/index.tsand for@nodeboot/google-cloud-functions-serverinpackage.jsonto confirm this adapter is (or isn't) already wired.
Minimal function entry point
Grounded in samples/sample-google-cloud-functions/src/index.ts:
import * as functions from "@google-cloud/functions-framework";
import {GoogleCloudFunctionsHandler, GoogleCloudFunctionsServer} from "@nodeboot/google-cloud-functions-server";
import {GoogleCloudFunctionsSampleApp} from "./app";