https://github.com/kazakago/cloud_functions_starter
"Cloud Functions" Starter Kit with Kotlin.
https://github.com/kazakago/cloud_functions_starter
cloudfunctions kotlin
Last synced: 10 months ago
JSON representation
"Cloud Functions" Starter Kit with Kotlin.
- Host: GitHub
- URL: https://github.com/kazakago/cloud_functions_starter
- Owner: kazakago
- Created: 2020-09-18T18:12:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-02T09:33:42.000Z (about 4 years ago)
- Last Synced: 2025-01-24T17:17:41.041Z (12 months ago)
- Topics: cloudfunctions, kotlin
- Language: Kotlin
- Homepage:
- Size: 84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cloud_functions_starter
"Cloud Functions" Starter Kit with Kotlin.
## Run Locally
```sh
$ ./gradlew runFunction -Prun.functionTarget=com.kazakago.cloud_functions_starter.Application
$ curl http://localhost:8080/
```
## Deploy Cloud Functions
1. Install gcloud CLI.
- `$ brew install --cask google-cloud-sdk`
1. Login account.
- `$ gcloud auth login`
```sh
$ gcloud functions deploy cloud_functions_starter --project=kazakago-playground --entry-point=com.kazakago.cloud_functions_starter.Application --runtime=java11 --trigger-http --allow-unauthenticated
```