A simple firebase application I built for my grandma, who is a bit of a hoarder (I guess that's where I get it from ๐), to keep track of all of the things she has.
It's basically just a stripped down version of my full IMS System.
- To try it out just clone the repo, and deploy it with the Firebase CLI to your own project.
- To get admin privileges create an email account in the Firebase web console, copy your users UID and add it to the config with the following command:
firebase functions:config:set admin.uid="YOUR_UID"
- You can then call the firebase functions 'promoteToUser' and 'promoteToAdmin'.
!! Make sure to pass the 'email' and 'displayName' as parameters in a dictionary !!You can do this from the developer console in your browser on either the login or system main page.var promoteToAdmin = firebase.functions().httpsCallable('promoteToAdmin'); promoteToAdmin({email: 'YOUR_EMAIL', displayName: 'YOUR_DISPLAY_NAME'});
More info in the official Firebase documentation.