最近覚えたvagrantでreact-sampleを動かしてみた
勉強会で@masuidriveさんのトークを聞いて興味を持ちました。
Ajaxを劇的に簡単にするReact.js – @masuidrive blog
そんでもって、サンプルを適当に見つけてきたけれど。
これってどう動かせばいいんや。
javascriptの知識なさすぎ・・・
むむ。grunt-cliとgruntは違うとの記述あり。
そかぁ。grunt-cliはインストールされているけど、gruntはインストールされていないなぁ
npm install
でインストールできるのかぁ。
現場で使えるGrunt入門 - Gruntを試そう | CodeGrid
gruntコマンドでサーバが起動できて、サンプルが動くように一応なったみたいだけど。。
react-sampleにVagrantfileを同胞してみた。
以下の手順でサンプルが動くと思います。
git clone https://github.com/dokechin/react-sample.git cd react-sample vagrant up vagrant ssh cd /vagrant grunt # at local browser open http://localhost:1337