1
1
# 股票机器人
2
2
3
- ## 前端(移动端&小程序)+ 后端(node.js )
3
+ ## 前端(移动端&小程序)+ 后端(nodejs )
4
4
5
- ** 前端: Vue + Mpvue** (支持移动端与小程序)
5
+ ** 前端: Vue + Mpvue** * (支持移动端与小程序)*
6
6
7
- ** 后端: koa** (使用Koa2开发服务端)
7
+ ** 后端: koa** * (使用Koa2开发服务端)*
8
8
9
9
> [ Vue] ( https://cn.vuejs.org/ ) 是一套用于构建用户界面的渐进式框架。` Vue ` 的核心库只关注视图层,不仅易于上手,还便于与第三方库或既有项目整合。另一方面,当与现代化的工具链以及各种支持类库结合使用时,` Vue ` 也完全能够为复杂的单页应用提供驱动。
10
10
@@ -28,14 +28,15 @@ npm start
28
28
# build H5 pages
29
29
npm run startH5
30
30
31
- # build for production with minification for mini program
31
+ # build pages for production with minification for mini program
32
32
npm run build
33
33
34
- # build for production with minification for H5 pages
34
+ # build pages for production with minification for H5 program
35
35
npm run buildH5
36
36
37
- # build for production and view the bundle analyzer report
38
- npm run build --report
37
+ # build node resource for server
38
+ gulp build
39
+
39
40
```
40
41
41
42
## 重要!!!
@@ -47,27 +48,33 @@ npm run build --report
47
48
48
49
* 使用 ` Vue.js ` 构建移动端应用
49
50
* 使用 ` mpvue ` 复用代码构建小程序应用
51
+ * 使用 ` Koa ` 构建服务端
50
52
* 使用 [ Vuex] ( https://github.com/vuejs/vuex ) 数据管理方案,方便构建复杂应用
51
53
* 使用 [ webpack] ( https://github.com/webpack/webpack ) 构建机制:自定义构建策略、开发阶段 hotReload
52
54
* 支持使用 [ npm] ( https://github.com/npm/npm ) 外部依赖
53
- * 使用 ` Koa ` 构建服务端
54
55
55
56
## 前后端分离
56
57
57
58
``` bash
58
59
# 启动前端--小程序
59
60
npm run dev
61
+
60
62
# 启动前端--H5
61
63
npm run devH5
64
+
62
65
# 启动后台
63
66
npm run server
64
67
```
65
- * (服务端代码仅位于项目server文件夹下)*
68
+ * (服务端代码仅位于项目server文件夹下,可根据自身需求进行拆分 )*
66
69
67
70
## 插件
68
71
72
+ - [ gulp] ( https://www.gulpjs.com.cn/ )
73
+ is a toolkit for automating painful or time-consuming tasks in your development workflow, so you can stop messing around and build something.
74
+
69
75
- [ Echarts] ( https://github.com/apache/incubator-echarts )
70
76
一个使用 JavaScript 实现的开源可视化库,可以流畅的运行在 PC 和移动设备上,兼容当前绝大部分浏览器(IE8/9/10/11,Chrome,Firefox,Safari等),底层依赖轻量级的矢量图形库 ZRender,提供直观,交互丰富,可高度个性化定制的数据可视化图表。
77
+
71
78
- [ Day.js] ( https://github.com/iamkun/dayjs )
72
79
一个轻量的处理时间和日期的 JavaScript 库,和 Moment.js 的 API 设计保持完全一样. 如果您曾经用过 Moment.js, 那么您已经知道如何使用 Day.js
73
80
@@ -79,6 +86,7 @@ npm run server
79
86
80
87
## Contribution
81
88
89
+ ![ master_head] ( https://avatars2.githubusercontent.com/u/31007223?s=400&u=2c4493300c0ff4a4362a737945e9cd63c015d7ae&v=4 )
82
90
[ RuShi] ( https://github.com/zz570557024 )
83
91
84
92
## License
0 commit comments