firebase admin dashboard
1.0.0
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.
api
defined inside functions
folder.api
cloud function which is basically
an Express based API for your app. Your write all your protected business
logic here.Put your Firebase project's name in .firebaserc
.
Set a secret key for JWT token on Firebase.
firebase functions:config:set auth.secret="<YOUR_SECRET>"
Cd to functions
folder and run
yarn install
For every admin user, run the npm script
yarn run passwdgen <username> <password>
and follow further instructions.
Cd to dashboard
folder and run
yarn install
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
.json
file and export it in your environment variable.
set GOOGLE_APPLICATION_CREDENTIALS=<path_to_json_file>/serviceAccountKey.json
functions
folder, run
firebase functions:config:get > .runtimeconfig.json
firebase serve --only functions
dashboard
folder and run
yarn start
Run deploy.sh
.
Please open a new issue in case you are facing some problem or write to me at [email protected].