Giter VIP home page Giter VIP logo

firebase-admin-dashboard's Introduction

Starter Project For Building Admin Dashboards For Firebase Apps

Easily create admin dashboards for your Firebase powered apps. For example, you can create a merchant dashboard for uploading items on an e-commerce site which uses Firebase as the backend.

Project Structure

  • dashboard: contains a react based app which will be served using Firebase hosting. It hits a Firebase cloud function api defined inside functions folder.
  • functions: contains an api cloud function which is basically an Express based API for your app. Your write all your protected business logic here.

Setup

  1. Put your Firebase project's name in .firebaserc.

  2. Set a secret key for JWT token on Firebase.

    firebase functions:config:set auth.secret="<YOUR_SECRET>"
  3. Cd to functions folder and run

    yarn install
  4. For every admin user, run the npm script

    yarn run passwdgen <username> <password>

    and follow further instructions.

  5. Cd to dashboard folder and run

    yarn install
  6. In dashboard/src/globals.js file, set your local and production cloud functions endpoints in API_URL. To get these values, run:

    for local

    firebase serve --only functions

    for production

    firebase deploy

Debugging

  1. Download your project's service account key .json file and export it in your environment variable.
    set GOOGLE_APPLICATION_CREDENTIALS=<path_to_json_file>/serviceAccountKey.json
  2. Get a copy of Firebase environment variables set on the server, for running the functions locally. From functions folder, run
    firebase functions:config:get > .runtimeconfig.json
  3. Run the functions locally
    firebase serve --only functions
  4. Cd to dashboard folder and run
    yarn start

Deploying

Run deploy.sh.

Help

Please open a new issue in case you are facing some problem or write to me at [email protected].

firebase-admin-dashboard's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

firebase-admin-dashboard's Issues

Firebase admin with iOS app

Great work. I have a project in iOS and would like to have an admin area for this project. would this library work with it? I would really appritiate a response. There are fields already in my Firestore. so I would like to know. Thanks

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.