Skip to content

hebertcisco/nestjs-firebase-admin

Repository files navigation

codecov

CircleCI

Node.js build and publish package

Running Code Coverage

TypeScript Nestjs Free. Built on open source. Runs everywhere. GitHub Actions

Firebase Admin SDK for Nestjs 🔥

Installation

Install with yarn or npm: yarn or npm:

# 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.