Skip to content

Commit 3dd7a6b

Browse files
committed
update readme
1 parent b6f052c commit 3dd7a6b

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ Following his articile and trying to have some write up. (e.g. using latest pack
44

55
## Install and run:
66
if Webpack is not installed yet:
7-
`npm install -g webpack
7+
npm install -g webpack
88

9-
`dotnet restore
10-
npm install
11-
webpack
12-
dotnet run`
9+
dotnet restore
10+
npm install
11+
webpack
12+
dotnet run
1313
## Packages used:
1414
- lodash <- similiar to numpy in Python, utilies library for manipulating array/object.
1515
- axios <- Promise based HTTP client for the browser and Node.js, think of $.ajax() if you come from jQuery world
@@ -39,24 +39,24 @@ dotnet run`
3939
Here we try to modify the implementation order different from the original post.
4040
We are going to add the loading indicator before implementing the Server Side Rendering.
4141
To simulate timely API call form remote server, we add the following line in HomeController.cs:
42-
`public JsonResult initialMessages(){
43-
//Added to simulate initial loading from remote server
44-
Thread.Sleep(2000);
45-
...
46-
}`
42+
public JsonResult initialMessages(){
43+
//Added to simulate initial loading from remote server
44+
Thread.Sleep(2000);
45+
...
46+
}
4747

4848
1. Add nprogess in package.json dependency:
49-
`"dependencies": {
50-
"vue": "^2.5.8",
51-
"vuex": "^3.0.1",
52-
"vue-router": "^3.0.1",
53-
"lodash": "^4.17.4",
54-
"axios": "^0.17.1",
55-
"nprogress": "^0.2.0"
56-
},`
49+
"dependencies": {
50+
"vue": "^2.5.8",
51+
"vuex": "^3.0.1",
52+
"vue-router": "^3.0.1",
53+
"lodash": "^4.17.4",
54+
"axios": "^0.17.1",
55+
"nprogress": "^0.2.0"
56+
}
5757
2. Add style-loader and css-loader to webpack.config:
58-
`{
59-
test: /\.css$/,
60-
loader: "style-loader!css-loader"
61-
}`
58+
{
59+
test: /\.css$/,
60+
loader: "style-loader!css-loader"
61+
}
6262
3. Modify ClientApp/vuex/actions.js, add `NProgress.start()` and `NProgress.done()` before and after axios remote call.

0 commit comments

Comments
 (0)