{"id":21406653,"url":"https://github.com/ringcentral/bugsnag-notification-app","last_synced_at":"2025-06-18T21:39:55.877Z","repository":{"id":38608325,"uuid":"322546581","full_name":"ringcentral/bugsnag-notification-app","owner":"ringcentral","description":"Bugsnag notification and bot add-in for RingCentral app","archived":false,"fork":false,"pushed_at":"2025-05-07T06:15:04.000Z","size":3094,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-05-07T07:28:09.330Z","etag":null,"topics":["add-ins","bot","bugsnag","ringcentral","serverless"],"latest_commit_sha":null,"homepage":"https://www.ringcentral.com/apps/bugsnag","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ringcentral.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-12-18T09:19:26.000Z","updated_at":"2025-05-07T06:15:00.000Z","dependencies_parsed_at":"2024-01-17T04:47:15.341Z","dependency_job_id":"b29d003d-888c-4629-b07b-f521966c09f6","html_url":"https://github.com/ringcentral/bugsnag-notification-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ringcentral/bugsnag-notification-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ringcentral%2Fbugsnag-notification-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ringcentral%2Fbugsnag-notification-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ringcentral%2Fbugsnag-notification-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ringcentral%2Fbugsnag-notification-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ringcentral","download_url":"https://codeload.github.com/ringcentral/bugsnag-notification-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ringcentral%2Fbugsnag-notification-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260639179,"owners_count":23040455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["add-ins","bot","bugsnag","ringcentral","serverless"],"created_at":"2024-11-22T16:41:27.749Z","updated_at":"2025-06-18T21:39:50.863Z","avatar_url":"https://github.com/ringcentral.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bugsnag Add-in\n\n[![Build Status](https://github.com/ringcentral/bugsnag-notification-app/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/ringcentral/bugsnag-notification-app/actions)\n[![Coverage Status](https://coveralls.io/repos/github/ringcentral/bugsnag-notification-app/badge.svg?branch=main)](https://coveralls.io/github/ringcentral/bugsnag-notification-app?branch=main)\n\n[Bugsnag notification add-in](https://www.ringcentral.com/apps/bugsnag) and bot for [RingCentral app](app.ringcentral.com).\n\n## Development\n\n### 1. Clone this project\n\n```\n$ git clone https://github.com/ringcentral/bugsnag-notification-app.git\n```\n\n### 2. Install dependencies\n\nInside project root:\n\n```\n$ npm install\n```\n\n### 3. Start Ngrok to create a URI for public internet access\n\n```\n$ npm run ngrok\n```\n\nKeep this process active, and you will get a publish uri as `https://xxxxxxxxxx.ngrok.io` that connected with your local port `localhost:6066`.\n\n### 4. Create a free RingCentral Notifications app\n\nPlease follow [here](https://developers.ringcentral.com/guide/team-messaging/add-ins/creation) to create a RingCentral notification app.\n\nIn `App Features`, enable `Interactive Messages`, then input URI `https://xxxxxx.ngrok.io/interactive-messages`. Please replace with your ngrok domain.\n\nIn `Integrated installation in RingCentral app` section, enable `This app can be installed via the web`, then input URI `https://xxxxxx.ngrok.io/webhook/new`.\n\n### 5. Create a free RingCentral Bots app\n\nPlease follow [here](https://developers.ringcentral.com/guide/team-messaging/add-ins/creation) to create a RingCentral Bots app.\n\nIn `App Permissions` section, add `Read Accounts`, `Team Messaging` and `Webhook Subscriptions`.\n\nIn `OAuth Redirect URI` section, input `https://xxxxxx.ngrok.io/bot/oauth`. Please replace with your ngrok domain.\n\nIn `App Features`, enable `Interactive Messages`, then input URI `https://xxxxxx.ngrok.io/interactive-messages`. Please replace with your ngrok domain.\n\n### 6. Create `.env` file\n\n```\n$ cp .env.default .env\n```\n\nEdit `.env` file as `.env.default` to set environment variables.\nThe `APP_SERVER` is publish uri that we get from ngrok.\nFor `DATABASE_CONNECTION_URI`, we can just keep `sqlite://./db.sqlite`. We will use sqlite as local database.\n\n### 7. Setup Database\n\nWe will use sqlite as local database. Please install sqlite3 in your machine firstly.\n\nInit Database:\n\n```\n$ npm run initDB\n```\n\n### 8. Start server\n\n```\n$ npm start\n```\n\n### 9. Test at RingCentral sandbox\n\nGo to `https://app.devtest.ringcentral.com/apps/sandbox` with your sandbox account, you can get your apps in development here. Click Plus icon to add your notification app or bots to test.\n\n## Deploy with serverless\n\n### 1. Create `serverless-deploy/env.yml` file\n\n```\n$ cp serverless-deploy/env.default.yml serverless-deploy/env.yml\n```\n\nEdit `serverless-deploy/env.yml` to set environment variables.\nWe will get `APP_SERVER` after first deploy. So now just keep it blank.\n\n### 2. Create `serverless-deploy/serverless.yml` file\n\n```\n$ cp serverless-deploy/serverless.default.yml serverless-deploy/serverless.yml\n```\n\nEdit `serverless-deploy/env.yml` to update serverless settings.\nThe Dynamo `TableName` should be `${DYNAMODB_TABLE_PREFIX}webhooks`. DYNAMODB_TABLE_PREFIX is environment variable that we set upper.\n\n### 3. Deploy\n\n```\n$ npm run serverless-build\n$ npm run serverless-deploy\n```\n\nIn first deploy, you will get lambda uri in console output: `https://xxxxxx.execute-api.us-east-1.amazonaws.com/prod`.\nCopy the uri, and update environment variable `APP_SERVER` with it in `serverless-deploy/env.yml` file. Then deploy again:\n\n```\n$ npm run serverless-deploy\n```\n\nThen update app settings in [RingCentral developer portal](https://developers.ringcentral.com/), with your new `APP_SERVER`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fringcentral%2Fbugsnag-notification-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fringcentral%2Fbugsnag-notification-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fringcentral%2Fbugsnag-notification-app/lists"}