Firebase Admin SDK for Nestjs 🔥
Install with yarn or npm:
yarn
ornpm
:
# yarn
yarn add nestjs-firebase-admin
# npm
npm i nestjs-firebase-admin --save
# pnpm
pnpm add nestjs-firebase-admin --save
// common.module.ts
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AdminModule } from 'nestjs-firebase-admin';
import { CommonService } from './common.service';
@Module({
imports: [
AdminModule.register({
credential: {
projectId: 'my-project-id',
clientEmail: 'my-client-email',
privateKey: 'my-private-key',
},
databaseURL: 'https://my-project-id.firebaseio.com',
}),
],
providers: [CommonService],
})
export class CommonModule {}
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Or buy me a coffee 🙌🏾
Copyright © 2024 Hebert F Barros.
This project is MIT licensed.