1

I want to try the demo for polymerfire in firebase. To get it run locally I followed these steps. But what exact steps do I need to do to get it to run in firebase?

I figured firebase init and firebase deploy should be run but the browser only displays errors in the console. Must the polymer project be build in a certain way and what should the firebase "public" folder be?

Community
  • 1
  • 1
Tim
  • 1,045
  • 14
  • 23
  • If you get an error, show the error. In general it would be useful to see exactly the steps that you've taken. At worst we can use these to try and reproduce the problem, but maybe that is not even needed and we can immediately see the problem. – Frank van Puffelen Aug 19 '16 at 02:10

2 Answers2

1

All files from public folder will be deployed to your Firebase static web hosting, so you can access them though your Firebase hosting address like https://projectname-5gek53.firebaseapp.com/. This allows you to upload your web app.

You build your polymer app (I guess you need to run polymer build). You drag all files generated as production build to your public folder. Next, you run firebase deploy and after deployment process your app will be accessible from your hosting address as I mentioned above.

Edit: Polymerfire demo is actually not that simple to export, but I found a really nice tutorial step-by-step from Google Codelabs here is a link Build a Progressive Web App with Firebase, Polymerfire and Polymer Components

pr0gramist
  • 8,305
  • 2
  • 36
  • 48
0

I just installed a new version of the polymer cli and Firebase cli. When I do a Polymer build, no build/bundled or build/unbundled is created. I do get a build/default, which I can run with a firebase serve and a firebase deploy. So something has changed recently. just fyi

IrishGringo
  • 3,864
  • 7
  • 37
  • 49