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
に存在する場合、圧縮処理は起動しません。)
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
を要します。