Make sure you have NPM and Node.js installed.
npm install -g polymer-cli@next
bower install
polymer serve
polymer build
I have been using Firebase to host my Polymer apps. It's a very simple setup.
Once I've run the polymer build
command, I initialize a new project in Firebase with firebase init
and follow the prompts. I don't change the default values, except for the public directory setting.
Running polymer build
bundles your files, and makes them accessable from the build/bundled directory. This project is configured to build in the build/default
directory.
Then run firebase deploy -p build/default
and viola!
Lastly, I will connect my own domain and firebase will provision an SSL on it for free. It doesn't get much simpler than that my friends!