nestjs-firebase-admin
v0.2.3
Published
Firebase Admin SDK for Nestjs
Downloads
144
Readme
Firebase Admin SDK for Nestjs :fire:
Installation
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
Usage example
// 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 {}
🤝 Contributing
Contributions, issues and feature requests are welcome!Feel free to check issues page.
Show your support
Give a ⭐️ if this project helped you!
Or buy me a coffee 🙌🏾
📝 License
Copyright © 2024 Hebert F Barros. This project is MIT licensed.