Cloud Functions with Kotlin/JS
- Kotlin v1.3.72
- dukat v0.0.28
- Node.js v13.3.0
- Google Cloud SDK v290.0.0
- Gradle v6.3
$ git clone git@github.com:sakebook/kotlin-js-cloud-functions.git
$ cd build/js/packages/kotlin-js-cloud-functions
$ npx @google-cloud/functions-framework --target=helloHttp
Running local server
$ curl -X POST -H "Content-Type: application/json" "http://localhost:8080/"
Hello World
Please set up your GCP before running.
$ ./gradlew clean compileKotlinJs
$ ./gradlew packaging
$ cd functions
functions$ gcloud functions deploy helloHttp --region=asia-northeast1 --trigger-http --runtime=nodejs8 --allow-unauthenticated
Copyright (c) 2020 sakebook Licensed under the Apache License.