Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/konstantinzolotarev/sails-hook-opbeat
Sails.js Opbeat hook
https://github.com/konstantinzolotarev/sails-hook-opbeat
Last synced: about 1 month ago
JSON representation
Sails.js Opbeat hook
- Host: GitHub
- URL: https://github.com/konstantinzolotarev/sails-hook-opbeat
- Owner: konstantinzolotarev
- License: mit
- Created: 2015-12-09T21:02:42.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-09T22:27:10.000Z (about 9 years ago)
- Last Synced: 2024-09-10T19:19:01.781Z (3 months ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Opbeat hook for Sails.js
## Installation
To install Opbeat hook follow this simaple steps:- Install hook via npm `npm install --save sails-hook-opbeat`
- Configure hook See configuration section
- Add this following line in the first line of your `app.js`: `require('sails-hook-opbeat/register');`## Configuration
List of available options for Opbeat hook you could see here: [Opbeat configuration](https://github.com/opbeat/opbeat-node/#configuration)
Create a config file `config/opbeat.js` with this content:
```javascriptmodule.exports.opbeat = {
/**
* Your Opbeat application id
* @type {String}
*/
appId: '',/**
* Your Opbeat organization id
* @type {String}
*/
organizationId: '',/**
* Your Opbeat secret token
* @type {String}
*/
secretToken: '',/**
* Is Opbeat active now
*/
active: process.env.NODE_ENV === 'production'
};
```