Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
How do I do my business logic on server-side on firebase?
Will the web app still have the benefits of progressive web app if I do this?
Reason to do this: Anybody can run Javascript code on your website if the person knows how to use the developer tools available in modern browsers.
Is firebase Queue (NodeJS on AWS) the way? I am a noob to all this.
You need to write more of your business logic on font-side than traditional way. To make it safe, you need to write access rules carefully on firebase console.
And it's not enough, you also need a server-side, nodejs is a good choice, there are many useful library, such as firebase, firebase-queue, firebase-admin. You can deploy these servers on the google cloud with docker.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed last year.
Improve this question
I'm planning to build a web app in such a short time. I'm planning to just use what I've learned in Firebase 8.9.1. However, I've learned that there was a new version of Firebase. These are the functions that I would most probably be using:
Database: Firestore
Will be using Firebase Authentication
The usual CRUD operations
Queries and distributed counters for functions similar to inventories
Firebase Hosting
Are there any big differences between the two versions? And is it alright if I'll just stay with version 8.9.1?
The difference is mostly the syntax but all services work as they used to. I would recommend updating to newer version so you get all the new features from Firebase.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I want to use my own servers for cloud functions instead of relying on Google's to eliminate the cold start of functions, how can I do this?
firebaser here
There is currently no native way to run your Cloud Functions on your own server. You can run the Firebase emulator suite to emulate functions, but those are not ready for production use.
The more common approach is to set up your own server, using something like Express. But you won't get the other trigger types that Cloud Functions offers, as those are only available within Google's infrastructure at the moment and you'll have to take care of scaling with the load yourself too.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Almost eveything is done through the database, and so this got me thinking, if I have user accounts, is there a way to create/allow certain things from the database,to be user configurable. For example, say they favorited a song, though it is done through the server, it'll be user base and only affect them.
Is there a way to allow certain things from the main database to be user database as well.
Sorta new to this.
You can definitely use firebase for music streaming ,
for basic upload you can use firebase storage, and use the download link to stream using Audio Players plugin
if you want to compress audios to different qualities you can use Firebase Functions by adding your own javascript to it.
The rest is just data manipulation and user management. You can refer the firebase documentations for more.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am setting up a project in Firebase.
It will use:
Authentication, to authenticate users
Hosting for main html/js functions
Storage for app data files
Database for a small db
What I am currently missing is the availablity of a backoffice space into which I need to run python scripts that will gather files to save into Storage area with a cronjob.
Is this currently possible in Firebase, or am I missing something?
Firebase doesn't have a generalized backend solution for running arbitrary code. You can bring whatever backend you want that meets your needs.
If you want to stay in the Google ecosystem, look into using Cloud Functions to run python code that's triggered by events in your system. You can configure Cloud Scheduler to trigger a function periodically.
The Firebase tools built around Cloud Functions don't support python, only nodejs.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
I am bulding a learning portal for a client and the client has asked for a feature where the user can record and upload sound directly from the browser (or browser plugin) to a custom made forum on the portal. The client envision having a button like [start recording] on the site. I am probably ending up with recommending against this feature but I would like to hear if any of you have done something similar and what you used.
This specific application is built using dotnet core 2.0 and Angular 5 in the frontend.
Using WebRTC could be an option if you can run your site under an SSL cert.
You may want to take a look to this example here.
Here you have another example using the device camera.
You can store the response on a Blob and send it to your server.
It is an initial aproach but I think it could help you take a decision.