Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 708 Bytes

File metadata and controls

38 lines (28 loc) · 708 Bytes

nestjs-firebase

Actions Status npm version

Install

npm install nestjs-firebase

Usage

@Module({
  imports: [
    FirebaseModule.forRoot({
      googleApplicationCredential: "path/to/credential file.json",
    }),
  ],
})
export class AppModule {}

// using in service class
export class Service {
  constructor(
    @InjectFirebaseAdmin() private readonly firebase: FirebaseAdmin,
  ) {}
}

Contributing

PRs accepted.

License

MIT © g59