Skip to content

beraboume/berabou.me

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published