Open in app
Cing Sian Dal
41 Followers
About

Sign in

41 Followers
About
Open in app

Firebase admin.js

Cing Sian Dal

Cing Sian Dal

·Nov 10, 2020

Just export and use it.

//admin.js

const admin = require('firebase-admin');

admin.initializeApp();

const db = admin.firestore();

module.exports = { admin, db };
  • Firebase
  • Firebase Admin
  • Nodejs

More from Cing Sian Dal

Don’t follow me. I wrote junks here. Follow me on Twitter instead.

More From Medium

Getting Started with Svelte

Mayank Gupta in TechnoFunnel

Typescript vs Javascript

Daniel Liu in Dev Genius

Building Casual AR games with React Native

Vladimir Novick

Using Data Provider Pattern for JavaScript Unit Tests

Sérgio Vinícius de Sá Lucena in The Startup

How to Use Set to Filter Unique Items in JavaScript ES6

Dr. Derek Austin 🥳 in Coding at Dawn

The Present Future of User Interface Development

Jani Eväkallio in HackerNoon.com

Vitejs and React

Roberto Butti in The Startup

Centralizing WordPress Code with a Theme Wrapper, Custom Actions and Layout Classes

Katie Terrell Hanna in Pressing Words

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store