Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.49 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.49 KB

Setup & Boot

gitおよびNodeJSとbowerのインストールが終了していることが前提です。ターミナル/cmder環境下で

git clone https://github.com/59naga/berabou.me.git
cd berabou.me

npm install
npm start
# Server running at http://localhost:59798

とすることで、http://localhost:59798上に、開発環境を起動できます。

NODE_ENV=production npm start
# Server running at http://localhost:59798

とすることで、本番環境に近い、コンパイルを圧縮して、各indexファイルを公開します。 (初回起動時、ファイルの圧縮にCPUをかなり消費します。プロセスが強制終了してpkgs.min.jsが生成されない場合は、onefile -o pkgs.min.js -mを手動で行う必要があるかもしれません。ファイルが./pkgs.min.jsに存在する場合、圧縮処理は起動しません。)

SEO

curl http://localhost:59798/\?_escaped_fragment_
# <body>
#   <!-- uiView:  --><main ui-view="" class="ng-scope">
#     <div class="index ng-scope">
#       <header>
#         <h1>berabou.me</h1>
#       </header>
# ...

express-turnoutを使用して、angular.jsのレンダリング結果を返します。これには、phantom.js2.0.0を要します。

日本語の解説記事を用意しています

License

MIT