Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sakebook/kotlin-js-headless-chrome
URL capture and post to Slack using Headless Browser in Kotlin/JS and running with Cloud Functions for Firebase.
https://github.com/sakebook/kotlin-js-headless-chrome
cloud-functions headless-chrome kotlin kotlin-js playwright puppeteer slack
Last synced: 21 days ago
JSON representation
URL capture and post to Slack using Headless Browser in Kotlin/JS and running with Cloud Functions for Firebase.
- Host: GitHub
- URL: https://github.com/sakebook/kotlin-js-headless-chrome
- Owner: sakebook
- License: apache-2.0
- Created: 2020-12-20T13:47:28.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-20T14:03:34.000Z (about 4 years ago)
- Last Synced: 2024-10-19T07:37:28.485Z (2 months ago)
- Topics: cloud-functions, headless-chrome, kotlin, kotlin-js, playwright, puppeteer, slack
- Language: Kotlin
- Homepage:
- Size: 107 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kotlin-js-headless-chrome
URL capture and post to Slack using Headless Browser in Kotlin/JS and running with Cloud Functions for Firebase.
![image](https://raw.githubusercontent.com/sakebook/kotlin-js-headless-chrome/main/art/capture.png)
## Environment
- Kotlin v1.4.21
- Gradle v6.3
- dukat v0.5.8-rc.3
- Node v12## Build
```sh
$ ./gradlew clean compileKotlinJs
```## Debug
Running local server.
You need replace [`SlackConfig`](https://github.com/sakebook/kotlin-js-headless-chrome/blob/main/src/main/kotlin/Main.kt#L12).
```sh
$ ./gradlew clean cKJ packaging && cd functions && npm install && npx @google-cloud/functions-framework --target=capture ; cd -
```## Deploy
You need setup gcloud.
```sh
$ ./gradlew clean
$ rm -rf functions
$ gcloud builds submit . --config cloudbuild.yaml
```---
## [LICENSE](https://github.com/sakebook/kotlin-js-headless-chrome/blob/main/LICENSE)
Copyright (c) 2020 sakebook Licensed under the [Apache License](https://github.com/sakebook/kotlin-js-headless-chrome/blob/main/LICENSE).