JSPM

  • Created
  • Published
  • Downloads 2556
  • Score
    100M100P100Q148889F
  • License MIT

Middleware for Treblle integration

Package Exports

  • treblle

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (treblle) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Treblle for Node

Treblle makes it super easy to understand what’s going on with your APIs and the apps that use them. To get started with Treblle create a FREE account on https://treblle.com.

Requirements

  • nodejs

Dependencies

Installation

You can install Treblle via NPM. Simply run the following command:

$ npm install treblle

Don't forget to load the required JS modules in your app.js like so:

const express = require("express");
const { useTreblle } = require("treblle");

Getting started

The first thing you need to do is create a FREE account on https://treblle.com to get an API key and Project ID. After that all you need to do is initialize Treblle in your app.js file like so:

const app = express();
app.use(express.json());

useTreblle(app, {
  apiKey: '_YOUR_API_KEY_',
  projectId: '_YOUR_PROJECT_ID_',
});

That's it. Your API requests and responses are now being sent to your Treblle project. Just by adding that line of code you get features like: auto-documentation, real-time request/response monitoring, error tracking and so much more.

Support

If you have problems adding, installing or using Treblle feel free to reach out via https://treblle.com or contact vedran@flip.hr and we will make sure to do a FREE integration for you.

License

Copyright 2020, Treblle. Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php