3.0.1 • Published 7 months ago

common-nest-plena v3.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

Description

common-nest-framework for common functionality access the projects. Includes NATS

Usage

  1. Install the library
npm install common-nest-plena
  1. In app.module.ts or cron.module.ts (which ever is app factory) add below config.
import { CommonModule } from 'common-nest-plena';

const options = {
  enabled: true,
  url: process.env.NATS_URL,
  healthCheckUrl: '/project-name/health',
};

@Module({
  imports: [
    ConfigModule.forRoot({
      isGlobal: true,
    }),
    CommonModule.forRoot(options),
    // OtherModule,
  ],
  controllers: [],
  providers: [],
})
export class AppModule {}
  1. Inject NatsService as a service in Class constructor
import { NatsService } from 'common-nest-plena';

constructor(private nc: NatsService) {}

Test

# unit tests
npm run test

Other re-usable components

  1. NatsService

  2. Response object to handle API reponses structure

3.0.1

7 months ago

3.0.0

7 months ago

1.3.2

12 months ago

1.3.1

12 months ago

1.3.0

1 year ago

2.0.7

1 year ago

2.0.5

1 year ago

2.0.6

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.4

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.2.0

2 years ago

1.2.8

2 years ago

1.1.9

2 years ago

1.2.7

2 years ago

1.1.8

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.9

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.1.7

2 years ago

1.0.8

2 years ago

1.1.6

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.1.4

2 years ago

1.0.5

2 years ago

1.1.3

2 years ago

1.0.4

2 years ago

1.1.2

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.3

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago