Socket
Socket
Sign inDemoInstall

tengriwatch

Package Overview
Dependencies
379
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tengriwatch

tengri is a request logger for your node js web API based application that comes with an interface to visualize requests made to your server.


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

tengri 👁‍🗨

📝 what is tengri

tengri is a request logger for your node js web API based application that comes with an interface to visualize requests made to your server.

🛠 how to use

  • to use tengri run the command in the project root yarn add tengriwatch or npm install tengriwatch
  • create a connection file for tengri to access your database, e.g. connect.js (if you are using knex.js skip this step):
  • put the code below in the js file:
   // Update with your config settings.
   module.exports = {
       development: {
           client: 'mysql',
           connection: {
           host:'localhost',
           database: '',
           user:     '',
           password: ''
           },
       },

       staging: {
           client: 'mysql',
           connection: {
           host:'localhost',
           database: '',
           user:     '',
           password: ''
           },
           pool: {
           min: 2,
           max: 10
           },
           migrations: {
           tableName: 'knex_migrations'
           }
       },

       production: {
           client: 'mysql',
           connection: {
           host:'localhost',
           database: '',
           user:     '',
           password: ''
           },
           pool: {
           min: 2,
           max: 10
           },
           migrations: {
           tableName: 'knex_migrations'
           }
       }
   };
  • in the app/index/server
    • require tengri module var Tengri = require("tengriwatch");
    • initialize tengri Tengri.init('connect.js') (if you're using knex, just pass knexfile.js)
    • require tengri server var {tengriServer} = require("tengriwatch");
    • require tengri var {tengri} = require("tengriwatch");
    • use tengri server app.use(tengriServer);
    • call tengri middleware above the route you want to monitor
          app.use(tengri)
          app.use('/d',home)
      
          OR
      
          app.use('/d',tengri,home)
      
  • navigate to your host or domain /tengri/tengriserver

built by

Keywords

FAQs

Last updated on 26 Apr 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc