Skip to content

Commit ec712dd

Browse files
committed
feat: ssr init
1 parent 29ef491 commit ec712dd

24 files changed

+2903
-9
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
书籍《揭秘Angular》通用例子,请确保你的 node.js 版本 >= 6.0
44

5+
### 安装依赖
56
- 运行 `npm install` 或者 `yarn install` 安装依赖
7+
8+
### 运行SPA版本
69
- 运行 `npm start` 构建并启动本地Server
7-
- 浏览器打开 http://localhost:4200 即可访问
10+
- 浏览器打开 http://localhost:4200 即可访问
11+
12+
### 运行SSR版本
13+
- 运行 `npm run start-ssr``npm run start-ssr:aot` 构建并启动服务端Server
14+
- 浏览器打开 http://localhost:4200 即可访问

dist-ssr/assets/contacts.json

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
[
2+
{
3+
"id": 1,
4+
"name": "张三",
5+
"telNum": "18900001001",
6+
"address": "广东省深圳市",
7+
"email": "123@qq.com",
8+
"birthday": "1990/10/10",
9+
"collection": 1
10+
},
11+
{
12+
"id": 2,
13+
"name": "李想",
14+
"telNum": "18900001002",
15+
"address": "广东省深圳市",
16+
"email": "123@qq.com",
17+
"birthday": "1990/10/10",
18+
"collection": 0
19+
},
20+
{
21+
"id": 3,
22+
"name": "大Q",
23+
"telNum": "18900001003",
24+
"address":" 广东省深圳市",
25+
"email": "123@qq.com",
26+
"birthday": "1990/10/10",
27+
"collection": 0
28+
},
29+
{
30+
"id": 4,
31+
"name": "旺旺",
32+
"telNum": "18900001004",
33+
"address": "广东省深圳市福田区车公庙泰然6路ccc小区1栋5A",
34+
"email": "123@qq.com",
35+
"birthday": "1990/10/10",
36+
"collection": 1
37+
},
38+
{
39+
"id": 5,
40+
"name": "胡巴",
41+
"telNum": "18900001005",
42+
"address": "广东省深圳市",
43+
"email": "123@qq.com",
44+
"birthday": "1990/10/10",
45+
"collection": 0
46+
},
47+
{
48+
"id": 6,
49+
"name": "老豆腐",
50+
"telNum": "18900001006",
51+
"address": "广东省深圳市",
52+
"email": "123@qq.com",
53+
"birthday": "1990/10/10",
54+
"collection": 0
55+
},
56+
{
57+
"id": 7,
58+
"name": "小明",
59+
"telNum": "18900001007",
60+
"address": "广东省深圳市",
61+
"email": "123@qq.com",
62+
"birthday": "1990/10/10",
63+
"collection": 0
64+
},
65+
{
66+
"id": 8,
67+
"name": "东东动",
68+
"telNum": "18900001008",
69+
"address": "广东省深圳市",
70+
"email": "123@qq.com",
71+
"birthday": "1990/10/10",
72+
"collection": 1
73+
},
74+
{
75+
"id": 9,
76+
"name": "大爷",
77+
"telNum": "18900001009",
78+
"address": "广东省深圳市",
79+
"email": "123@qq.com",
80+
"birthday": "1990/10/10",
81+
"collection": 0
82+
},
83+
{
84+
"id": 10,
85+
"name": "大叔",
86+
"telNum": "18900001010",
87+
"address": "广东省深圳市",
88+
"email": "123@qq.com",
89+
"birthday": "1990/10/10",
90+
"collection": 0
91+
}
92+
]

dist-ssr/assets/images/Iverson.jpg

15.6 KB
Loading

dist-ssr/assets/images/add.png

88 Bytes
Loading

dist-ssr/assets/images/back.png

151 Bytes
Loading

dist-ssr/assets/images/collect.png

669 Bytes
Loading

dist-ssr/assets/images/collected.png

475 Bytes
Loading

dist-ssr/assets/images/tel.png

2.16 KB
Loading

dist-ssr/favicon.ico

5.3 KB
Binary file not shown.

dist-ssr/main.bundle.js

Lines changed: 2098 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)