瀏覽代碼

Added running instructions.

Frederic G. MARAND 8 年之前
父節點
當前提交
3ab19cf03b
共有 1 個文件被更改,包括 13 次插入1 次删除
  1. 13 1
      README.md

+ 13 - 1
README.md

@@ -1,5 +1,17 @@
 # react-intro : Learning ReactJS
 
+## Installing
+
+- adjust the webpack-dev-server 2 URLs used in `index.html` :  `vm:8090` assumes
+  we want that server to run on a host called `vm`, but most users will want
+  `localhost` instead
+- adjust the `dev` script in `package.json` to match those URLs
+- `npm install`
+- `npm run start`
+- browse to [http://vm:8080/index.html](http://vm:8080/index.html) assuming
+  you didn't change the `serve` URL in `package.json`.
+
 ## Parts taken from:
 
-- http://jslog.com/2014/10/02/react-with-webpack-part-1/
+- http://jslog.com/2014/10/02/react-with-webpack-part-1/ : much more useful than
+  ReactJS "Getting started".