Polymer 2.0 Turtorial
(with Cloud9 IDE)


Open Cloud9:

First step, creating a new workspace on Cloud9.


And do something basic setup.


like import npm & create package.json


npm init

Inatall Polymer 2.x:

Refer steps in this document:Inatall Polymer 2.x


  1. import “bower” package




npm install bower --save


  1. import “polymer-cli” package




npm install polymer-cli --save


  1. Initialize your project, and remember press enter after choose a select.






 polymer init



  1. Serve your project. But this step you can’t follow the document. Document is “polymer serve”, but it will serve on IP 127.0.0.1:8081. This IP is not work in Cloud9, Idont know why so far.
So, you need to change the IP to “0.0.0.0”. (Very Important)




polymer serve --hostname “0.0.0.0”




Post a Comment

較新的 較舊