1.0.35 • Published 6 days ago

@rfprodz/backend-diagnostics v1.0.35

Weekly downloads
-
License
MIT
Repository
github
Last release
6 days ago

backend-diagnostics

Diagnostics module for NestJS backends.

Developer commands reference

npx nx run tools:help --search backend-diagnostics:

Usage

Add to the root API module

...
@Module({
  ...
  imports: [
    ...
    HttpModule.registerAsync({
      useFactory: () => ({
        timeout: 10000,
        maxRedirects: 5,
      }),
    }),
    AppDiagnosticsModule.forRoot(),
    ...
  ],
  ...
})
export class AppApiModule {}

Add to the main.ts file

/**
 * Express server.
 */
const server: e.Express = e();

...

async function bootstrap(expressInstance: e.Express): Promise<INestApplication> {
  const app = await NestFactory.create(AppApiModule, new ExpressAdapter(expressInstance));
  app.useWebSocketAdapter(new WsAdapter(app));

  ...

  return app.init();
}

void bootstrap(server);

References

1.0.35

6 days ago

1.0.34

17 days ago

1.0.33

1 month ago

1.0.32

2 months ago

1.0.31

3 months ago

1.0.30

4 months ago

1.0.29

5 months ago

1.0.19

9 months ago

1.0.18

10 months ago

1.0.16

10 months ago

1.0.22

9 months ago

1.0.21

9 months ago

1.0.20

9 months ago

1.0.26

6 months ago

1.0.25

7 months ago

1.0.24

7 months ago

1.0.23

8 months ago

1.0.27

6 months ago

1.0.15

10 months ago

1.0.9

12 months ago

1.0.8

12 months ago

1.0.11

11 months ago

1.0.10

12 months ago

1.0.14

11 months ago

1.0.12

11 months ago

1.0.2

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago