In some tutorials, the instructor says that the Front end should not talk to your database directly. In case of Angular and Firebase, we have to provide our firebase credentials in our angular app. I agree its not safe if you have set the rules to true for both write and read in firebase. I know it is fine to have an intermediate layer (RESTful API), if you don't have any need for realtime updates from the database.
If I want to have realtime capabilities in my angular app,
- is that okay to connect firebase directly from angular app?
- is there any alternative way to have this realtime updates worked?