When the record write succeeds, I want to show them a “purchase complete” fragment, and if the record is not created, I want to at least warn them with an error code.
Tag: firebase
Firebase Database paths must not contain ‘.’, ‘#’, ‘$’, ‘[‘, or ‘]’
I’m trying to minimize the amount of data downloaded for subscriber accounts. I’d like to store all of my subscribers in the path /subscribers/[emailAddress]/ on my Firebase Database. If I can’t use the email address as part of the path, I’ll be forced to download the entire list of subscribers and then search through the…(Continue Reading)
Replicate a Firebase Real-Time Database with a simple Perl script
Here is a very simple script to replicate data from one Firebase RTD to a backup RTD. Just be sure to modify the array of root keys (@firebaseBackupKeys) to reflect your database. This version can be called from a web browser, or via a cron job. #!/usr/bin/perl use CGI::Carp qw(fatalsToBrowser); print ‘Content-type: text/html’, “\n\n”; use…(Continue Reading)
Install Firebase Perl module with Bitvise SSH
Connect to your web host, then click the “New Terminal Console” button. 2. Type “cpan” at the command prompt: 3. If cpan requires configuration, select “local::lib” by pressing enter, or sudo if you have permission for the server. In my instance, my web host does not allow sudo. 4. Once cpan finishes configuration, note the…(Continue Reading)