You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,6 @@ Mac:
13
13
14
14
```bash
15
15
$ brew install node
16
-
$ brew install yarn # optional, you can also use npm
17
16
```
18
17
19
18
Linux:
@@ -31,7 +30,7 @@ You can download node from http://nodejs.org
31
30
### Install dependancies
32
31
33
32
```
34
-
$ yarn install
33
+
$ npm install
35
34
```
36
35
37
36
## Configure
@@ -45,13 +44,13 @@ You can create a `config/local.js` file to point to the corpus service you want
45
44
To turn on the server:
46
45
47
46
```bash
48
-
$ yarn watch
47
+
$ npm run watch
49
48
```
50
49
51
50
To develop offline with fixture data:
52
51
53
52
```bash
54
-
$ OFFLINE=true yarn start --offline
53
+
$ OFFLINE=true npm start --offline
55
54
```
56
55
57
56
Then open https://localhost:3182 and accept the security certificate warning since you are developing locally with a self signed certificate.
@@ -126,7 +125,7 @@ Redux server side render is based on from [mz026](https://github.com/mz026/unive
126
125
-[Webpack](https://webpack.github.io/)@2.2
127
126
-[Babel](https://babeljs.io/)@6
128
127
- Express as isomorphic server
129
-
-`yarn` as package manager
128
+
-`npm` as package manager
130
129
131
130
132
131
### Testing:
@@ -152,14 +151,14 @@ To test your production build:
152
151
153
152
```bash
154
153
$ gulp build
155
-
$ NODE_ENV=production yarn start
154
+
$ NODE_ENV=production npm start
156
155
```
157
156
158
157
## Deployment:
159
158
160
159
To deploy this app to production environment:
161
160
162
-
- Run `$ NODE_ENV=production yarn install` on server
161
+
- Run `$ NODE_ENV=production npm install` on server
163
162
- After the installation above, `postinstall` script will run automatically, building front-end related assets and rev-ed server code under `dist/` folder.
0 commit comments