How to use @anchan828/nest-sendgrid - 2 common examples

To help you get started, we’ve selected a few @anchan828/nest-sendgrid examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github juicycleff / ultimate-backend / apps / service-notification / src / app.module.ts View on Github external
import { Module } from '@nestjs/common';
import { SendGridModule } from '@anchan828/nest-sendgrid';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { EmailModule } from './email/email.module';
import { CoreModule } from '@graphqlcqrs/core';
import { AppConfig } from '@graphqlcqrs/common/services/yaml.service';

// tslint:disable-next-line:no-var-requires
require('dotenv').config();

@Module({
  imports: [
    CoreModule,
    SendGridModule.forRoot({
      apikey: AppConfig.sendgrid?.api || 'SENDGRID-API-KEY',
    }),
    EmailModule,
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}
github juicycleff / ultimate-backend / apps / service-notification / src / email / email.service.spec.ts View on Github external
beforeEach(async () => {
    const module: TestingModule = await Test.createTestingModule({
      imports: [
        SendGridModule.forRoot({
          apikey: 'SENDGRID-API-KEY',
        }),
      ],
      providers: [EmailService],
    }).compile();

    service = module.get(EmailService);
  });

@anchan828/nest-sendgrid

SendGrid module for Nest framework (node.js)

MIT
Latest version published 6 days ago

Package Health Score

69 / 100
Full package analysis

Popular @anchan828/nest-sendgrid functions

Similar packages