https://github.com/glynnbird/so
Serverless StackOverflow poller
https://github.com/glynnbird/so
serverless slack stackoverflow
Last synced: about 2 months ago
JSON representation
Serverless StackOverflow poller
- Host: GitHub
- URL: https://github.com/glynnbird/so
- Owner: glynnbird
- Created: 2018-05-11T12:59:18.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-11T13:05:01.000Z (about 8 years ago)
- Last Synced: 2025-03-05T21:44:40.607Z (over 1 year ago)
- Topics: serverless, slack, stackoverflow
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# so
A simple serverless StackOverflow poller that
- fetches recent questions added on tags that interest you
- adds them to a Cloudant database
- notifies a Slack incoming webhook that a new question has arrived
## Pre-requisites
- an IBM Cloud Functions account with the `bx wsk` tool installed and set up
- an IBM Cloudant database
- a Slack account with an "Incoming Webhook" configured
## Installation
Clone this repo. Then run:
```sh
export ACCOUNT="mycloudant"
export PASSWORD="mypassword"
export TAG="cloudant;couchdb"
export DBNAME="mydatabase"
export HOOK="https://hooks.slack.com/services/MY/WEBHOOK/URL"
./deploy.sh
```
## Setup
In the IBM Cloud Functions UI,
- set up a trigger/rule to run the `so/poll` action every 30 minutes.
- set up a changes feed listener to run `so/notify` whenever your Cloudant database changes