healthz-module
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Welcome to healthz-module 👋

Version Documentation License: MIT

NestJS health module based on Terminus

🏠 Homepage

Install

npm install healthz-module --save

Usage

Add to your module next options:

 HealthModule.register({
            checkServices: {
                mongodb: [
                    {
                        connectionName: '', // DB connection name
                        connectionUrl: '', // DB connection uri
                    },
                    {
                        connectionName: '', // DB connection name
                        connectionUrl: ''  // DB connection uri
                    }
                ],
                redis: [
                     {
                        connectionName: '', // Redis connection name
                        connectionUrl: ''  // Redis connection uri
                    }
                ]
            },
        })

where checkServices options is:

Module options Values Required
mongodb MongoDB options no
redis Redis options no

After that health check available on https://localhost/healthz

Run tests

npm run test

Author

👤 Yaroslav Kuznetsov y.kuznetsov@admitad.com

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

Readme

Keywords

none

Package Sidebar

Install

npm i healthz-module

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

90 kB

Total Files

35

Last publish

Collaborators

  • andr_07
  • wlproduct.com