Server-side with Polymer and Firebase

190 views
Skip to first unread message

Mark Wang

unread,
Jul 1, 2015, 4:39:15 PM7/1/15
to polym...@googlegroups.com
Hi

I am used to use PHP. I just recently start to move to Polymer. The system that I am developing need some server-side work such as import-export data to-from database as CSV or Excel files.
I am wondering if there is any way to create custom server-side module, that I can use and pull and manipulate data from Firebase?

Thank you!


Eric Bidelman

unread,
Jul 1, 2015, 5:00:27 PM7/1/15
to Mark Wang, polym...@googlegroups.com
Hi Mark. You should be able to develop a PHP backend that talks to the Firebase REST API. On the client-side Polymer (iron-ajax or similar) can then talk to your endpoint.

Alternatively, check out the <fire-elements>: 

That would remove the need for a server altogether.

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/f666663c-e347-425a-b82c-50c187fcc899%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Bleigh

unread,
Jul 1, 2015, 5:03:14 PM7/1/15
to polym...@googlegroups.com
Hey Mark,

You can definitely build and deploy server-side components that interact with Firebase -- the easiest way to do this is probably with Node.js. The idea is that your server component connects to and manipulates data which is then synced to the Firebase datastore automatically. I wrote a blog post a while back that talks about this a bit:


As a note, your question is probably a lot more relevant to the firebase-talk group than polymer-dev. I happen to be well-versed in both, but this is more of a Firebase question :)

Cheers,
Michael
Message has been deleted

Mark Wang

unread,
Jul 1, 2015, 5:12:19 PM7/1/15
to polym...@googlegroups.com
Thank you Eric, and Michael.

I will check those resources out.

Mark
Reply all
Reply to author
Forward
0 new messages