Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tmigone/slanzo
Slack integration for Plunzo webhooks
https://github.com/tmigone/slanzo
pluns plunzo slack
Last synced: 18 days ago
JSON representation
Slack integration for Plunzo webhooks
- Host: GitHub
- URL: https://github.com/tmigone/slanzo
- Owner: tmigone
- Created: 2020-08-07T02:26:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-11T23:38:45.000Z (over 4 years ago)
- Last Synced: 2024-10-19T19:59:30.354Z (3 months ago)
- Topics: pluns, plunzo, slack
- Language: TypeScript
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# :chart_with_upwards_trend::moneybag: Slanzo :moneybag::chart_with_upwards_trend:
**Slack integration for Plunzo webhooks**## Before starting
You'll need the following:
- a [Plunzo](https://plunzo.com/) account
- a [Slack](https://api.slack.com/) developer account
- create a [slack app](https://api.slack.com/apps), enable `Incoming Webhooks` functionality and register a webhook for a channel. Copy and save the webhook URL for later (`SLACK_WEBHOOK_URL`)## Run using npm
```bash
npm install
npm run build
SLACK_WEBHOOK_URL='' npm run start
```## Run using balena.io
```bash
balena push --dockerfile Dockerfile.template --env SLACK_WEBHOOK_URL=''
```## Run using Docker
```bash
sed 's/%%BALENA_MACHINE_NAME%%/amd64/' Dockerfile.template > Dockerfile
docker build -t slanzo .
docker run -p 3000:3000 -e SLACK_WEBHOOK_URL='' slanzo
```## Configure Pluns
WIP
## Testing
Plunzo test webhooks can be triggered with this command:
```bash
./test/trigger.sh "" ""
```where server is the URL of the deployment (for example: `http://192.168.90.170:3000`) and `WEBHOOK` is one of:
- `INCOMING (default)`: "nuevo movimiento ingresante"
- `OUTGOING`: "nuevo movimiento saliente"
- `BALANCE`: "balance"