Getting a new data from firebase database real time with angularfire2 - angularjs

im using angularfire2 to connect firebase real time database. and it works well. is it possible to get new items from firebase rtdb using angularfire2??. the docs a lil bit confusing. i tried this code from this site. and i dont know how i code onCreate() or onDelete() in angularfire2. thanks.

Related

How to post data to wordpress database using react

i'm trying to create a wordpress plugin and got a bit lost.
I'm not looking for a solution in code but could anyone direct me to a tutorial/docs where to find the correct approach.
I'm trying to post an array of objects to a mysql database.
Most basic stuff that you can do - onClick function, that connects to a database.
My wordpress plugin is created using React and I have previously used AJAX, but this time it throws quite a lot of errors that I have not seen, so I don't even know where to begin.
mysql npm package is also not working as I have used it before so i'm just confused.
Essentially could anyone tell me which API to use and link a good tutorial

How would I go into setting up a firebase project safely?

I have an app idea which I want to create a working product of. I do have a working demo with React Native and I'm using Firebase for storing documents and images. Creating documents and uploading images to Firebase Storage is all done in the app, but this is just for demo purposes. In reality you would of course want to use an API for storing all that data. At least, I thought so. All I see on the internet is people using Firebase directly in their app. Is this the correct way of doing it? I always learned you should use a backend, for example a REST API for safely handling data.
Is it safe and secure to 'just' use React Native? I want to handle payments in my app, so I really want it to be done securely.
So what's an example of a stack I could use?
Currently using React Native and Firebase. But for safety I'd imagine something like
React Native - frontend
Node Express Server - backend
Firebase - database
I hope someone can give me a little push in the right direction.

Creating a webpage with a unique URL using react/firebase?

I'm pretty new to react and building out a little prototype using Firebase as a backend. One of the primary functionalities involves a user writing a post in an editor, which is saved to firebase. On submit in the editor, I am trying to create a new standalone page for the post with the firebase uid as the ending part of the new unique URL.
The problem I'm having is figuring out a way to create the new page on submit. I haven't been able to find any documentation for a similar problem like this specific to react or firebase, and was just wondering on a high-level what a good approach to executing this might be? Thanks
The newly launched Firebase Hosting + Cloud Functions integration can help here. The first bullet point in the documentation looks like it describes your use case exactly.
You also mentioned React. There is a handy sample project showing how to implement an isomorphic React app with Firebase.

Firebase to Wordpress

I'm new to WordPress and I've also been having fun experimenting with Angular/Firebase.
I'm looking to find a way to have an Angular app connect with the WP API in a way that goes further than just displaying posts.
Can someone direct me towards how to submit a form to Firebase and have it simultaneously create a new post and/or page in the WordPress backend? I've come across Zapier but, a) It doesn't seem to be flexible enough for what I want to do and b) It's not free and I'd rather figure it out on my own (with some help from you guys of course.)
I'm plenty fine with being able to use an $http request to list and display posts... but how can I create NEW posts?
PS: I don't NEED to use Firebase. Mainly, I'm really most concerned with creating a new post and/or comment without having to actually do it from the wp-admin.

Keep data when iPhone app is updated (Monotouch)

I'm all new to this app coding but working with Monotouch makes it possible for me to actually do something :-)
I'm making an app that uses a database but I think it's likely that the app will evolve over time. If i submit an app to the appstore and users install it, it will over time store a lot of data.
Now, if I update the app and users get the update in app store what then? will the data be erased when they install the new version?
and what if the DB schema changes?
thx
Nicolaj
Thx jason!
I also searched a bit more on my own and found this which also explains: How to update SQLite DB on iPhone app update?

Resources