Skip to content

sakebook/kotlin-js-cloud-functions

Repository files navigation

kotlin-js-cloud-functions

Cloud Functions with Kotlin/JS

Requirement

  • Kotlin v1.3.72
  • dukat v0.0.28
  • Node.js v13.3.0
  • Google Cloud SDK v290.0.0
  • Gradle v6.3

Setup

$ git clone git@github.com:sakebook/kotlin-js-cloud-functions.git

Debug

$ 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

Deploy

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.

Releases

No releases published

Packages

No packages published

Languages