https://github.com/hebertcisco/nestjs-firebase-admin
Firebase Admin SDK for Nestjs 🔥
https://github.com/hebertcisco/nestjs-firebase-admin
firebase firebase-cloud-messaging nestjs nestjs-graphql nestjs-library nestjs-module typescript
Last synced: 3 months ago
JSON representation
Firebase Admin SDK for Nestjs 🔥
- Host: GitHub
- URL: https://github.com/hebertcisco/nestjs-firebase-admin
- Owner: hebertcisco
- License: mit
- Created: 2022-09-19T12:22:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-28T01:47:03.000Z (3 months ago)
- Last Synced: 2025-04-12T07:17:17.054Z (3 months ago)
- Topics: firebase, firebase-cloud-messaging, nestjs, nestjs-graphql, nestjs-library, nestjs-module, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/nestjs-firebase-admin
- Size: 4.63 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://codecov.io/gh/hebertcisco/nestjs-firebase-admin)
[](https://dl.circleci.com/status-badge/redirect/gh/hebertcisco/nestjs-firebase-admin/tree/main)
[](https://github.com/hebertcisco/nestjs-firebase-admin/actions/workflows/npm-publish.yml)
[](https://github.com/hebertcisco/nestjs-firebase-admin/actions/workflows/coverage.yml)
[](https://www.typescriptlang.org/)
[](https://nestjs.com/)
[](https://code.visualstudio.com/)
[](https://github.com/hebertcisco/nestjs-firebase-admin/actions)> Firebase Admin SDK for Nestjs :fire:
## Installation
> Install with yarn or npm: `yarn` or `npm`:
```bash
# yarn
yarn add nestjs-firebase-admin
``````bash
# npm
npm i nestjs-firebase-admin --save
``````bash
# pnpm
pnpm add nestjs-firebase-admin --save
```### Usage example
```ts
// 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](issues).## Show your support
Give a ⭐️ if this project helped you!
Or buy me a coffee 🙌🏾
## 📝 License
Copyright © 2024 [Hebert F Barros](https://github.com/hebertcisco).
This project is [MIT](LICENSE) licensed.