nest-common

Common Library to provide common functionality for NestJS applications

Config

Provides a ConfigService that can be used to load configuration from a file or environment variables.

Logger

Provides a LoggerService that can be used to log messages to the console.

Database

Provides a RedisService that can be used to connect to a Redis instance.

Api

Provides abstract classes for controllers and services that can be used to create a REST API.

Navigation

Provides a NavigationService that can be used to create a navigation tree and share it between multiple applications

Example Usage:

Example :
NavigationModule.registerAsync({
  imports: [ConfigModule],
  inject: [ConfigService],
  useFactory: (config: ConfigService) => ({
    natsHost: config.msAddress,
    natsPort: config.msPort,
    appName: config.applicationName,
    serverAddress: config.serverAddress,
    routes: [...frontendNavigation],
  }),
});

Feature Full OTEL Support

results matching ""

    No results matching ""