Skip to content

An example Hello World app in Scala that will run on Google Cloud Platform's Cloud Functions

License

Notifications You must be signed in to change notification settings

TobiasRoland/scalajs-gcp-cloud-function

Repository files navigation

To create a Google Cloud Function, use the TobiasRoland/scalajs-gcp-cloud-functions.g8 template

sbt new TobiasRoland/scalajs-gcp-cloud-functions.g8

Scala.js example app for GCP Cloud Functions

This is an example 'Hello World' app in Scala that will run on Google Cloud Platform's Cloud Functions and respond to any HTTP requests with status code 200 and a plaintext body of Hello World.

Read more: GCP Cloud Functions with Scala.js in 10 lines(ish)

To build

sbt fullOptJS

This will generate a single JS file: ./task/scala-2.12/scalajs-gcp-cloud-function-opt.js, where the helloWorld function can be invoked from GCP Cloud Functions

About

An example Hello World app in Scala that will run on Google Cloud Platform's Cloud Functions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages