Coder Social home page Coder Social logo

firebase-admin's Introduction

Firebase Admin

screenshot

Introduction

The official Firebase console is a great tool to manage your account. But managing Firebase Firestore Database can get a bit challenging for more advanced use cases.

Firebase Admin solves some of these challenges but adding functionality and improving the user experience. Things you can do with Firebase Admin:

  • Anything you can do using Firebase Console
  • Easily remove a document, a group of documents or an entire collections
  • Rename documents
  • Clone documents
  • Edit documents using a json like interface
  • Quick view multiple parameters for all documents in a collection simultaneously, and filter or sort by them
  • Search documents in a collection
  • Click a link to a photo to quick preview it
  • Save favorite paths
  • Filter a document to show only a specific property
  • Much faster loading of large documents
  • View the size of each document
  • View the number of document
  • Easily navigate to different subcollections in the current hierarchy

Setup

Clone

First, clone the repository to your machine

git clone https://github.com/itaicaspi/firebase-admin.git

Install dependencies

Install all the node packages required to run the dashboard

cd firebase-admin
npm install

Add a firebase config

Configure your firebase account by adding a file named src/firebaseConfig.ts with the content of your firebase configuration

export const firebaseConfig = {
  apiKey: "...",
  authDomain: "...",
  databaseURL: "...",
  projectId: "...",
  storageBucket: "...",
  messagingSenderId: "...",
  appId: "...",
  measurementId: "..."
};

Deploy firebase functions

Firebase functions are used in order to take care of some logic that is not available in the client website. This includes removing documents, listing collections, etc.

firebase deploy --only functions

Run locally

Note: running locally still depends on first deploying the firebase functions using the previous command.

To run the website locally, use:

npm start

Open http://localhost:3005 to view the dashboard

Deploy firebase hosting

The firebase admin website is ready for deployment to firebase hosting. Just run the following commands to deploy

npm run build
firebase deploy --only hosting

firebase-admin's People

Contributors

itaicaspi avatar itaicaspi-mirrori avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.