4

I want to view this demo of Polymerfire in my browserPolymerの「polymer serve」ポリサーブサーバーを使用してPolymerfireデモを表示するにはどうすればよいですか?

ブラウザでデモが実行されることが見込まれます。代わりに空白のページと次のコンソールエラーが表示されます。

console.log.error.message

http://localhost:8080/

http://localhost:8080/ 404(見つかりません)
ナビゲートをGET私は、次の手順を使用:

  1. I installed the Polymer-CLI multi-tool per the instructions found here
  2. I created a project using the Polymer Starter Kit (PSK)
  3. プロジェクト名はmy-appです。
  4. 私は、CLIを使用してここで見つけるのGithubレポをインストール:
    bower install ---save firebase/polymerfire
  5. 私はターミナルを開き、アプリケーションのルートディレクトリにナビゲート。
    cd path/to/my-app
  6. I ran the following Polymer-CLI command (per the instructions found here)。私はこれを試してみて、解決するために行うことができますので、私は私のブラウザでデモ走行を見ることができますどのような
    polymer serve

答えて

4

要素デモを実行するための最良の方法は、それをチェックアウトすることです...

git clone https://github.com/firebase/polymerfire.git 

cd polymerfire 

bower install 

polymer serve 

私は亭install'dフォルダからデモを実行しようとしたことがないけど、上記の方法が動作します。

4

また、正しいローカルホストのパスに移動する必要があります。
http://localhost:8080/components/polymerfire/demo/

ので(コマンドラインから)完全な手順は次のとおりです。

まず、install the polymer-cli per the instructions found here

npm install -g bower 
npm install -g polymer-cli 

次に、以下を実行します。

shell.sh
git clone https://github.com/firebase/polymerfire.git 
cd polymerfire 
bower install 
polymer serve 
open http://localhost:8080/components/polymerfire/demo/