File tree Expand file tree Collapse file tree 4 files changed +24
-37
lines changed Expand file tree Collapse file tree 4 files changed +24
-37
lines changed Original file line number Diff line number Diff line change 1
- stock
2
- =====
1
+ 功能:
3
2
4
- stock01
3
+ 1 . 股票页面聊天室功能:
4
+ a. 聊天室以股票为单位,同一个用户可以进入多个股票的聊天室进行聊天
5
+ b. 聊天记录可以设置缓存数量,默认为20条,如果超过20条会存储到数据库中,当聊天室中没有用户也会将聊天内容存入数据库中
5
6
6
- 11.13
7
- ejs部署
7
+ 聊天室代码:
8
+ https://github.com/tangguangyao/stock/blob/master/models/socket.js
8
9
9
- 12.19
10
- 前台基本功能完善
11
10
12
- 具体股票页面聊天室功能,聊天记录能存储
11
+ 2 . 微博类似的话题,评论,回复,转发功能,前端使用angularjs绑定实现
13
12
14
- 微博类似的话题,评论,回复,转发功能
13
+ 3 . 页面实时交互,包括关注股票,关注用户功能
15
14
16
- 股票页面能查看讨论这个股票的话题
15
+ 4 . 股票页面能查看讨论这个股票的话题
17
16
18
- 个人页面能查看我关注的用户的话题,关注股票的相关话题,我的话题,@我的话题
17
+ 5 . 个人页面能查看我关注的用户的话题,关注股票的相关话题,我的话题,@我的话题
19
18
19
+ 6 . 加入grunt管理代码,引入uglify压缩代码,jshint检测代码规范,watch监听代码变化
20
20
21
- angularjs和seajs 混用感觉不怎么好,去掉seajs了
21
+ 7 . 使用mocha检测后端代码
22
+ 检测代码在test中
23
+ 总结mocha单元测试经验
24
+ http://hi.baidu.com/tang_guangyao/item/302a9d1a9976c06ae65e0643
22
25
23
- 加入grunt
26
+ 8 . 加入async流程控制,对于需要多次回调查询数据库的进行重构
24
27
25
- 12.20 用jshint规范单元测试
28
+ 9 . 尝试bigpige,首页利用bigpipe,加载热门股票和热门用户,并且和angular结合使用
26
29
27
- qunit前端单元测试
28
- mocha后端单元测试
29
-
30
- 总结mocha单元测试经验
31
- http://hi.baidu.com/tang_guangyao/item/302a9d1a9976c06ae65e0643
32
-
33
- 数据库对应模块单元测试完成
34
-
35
- 加入async,对于需要多次回调查询数据库的进行重构
36
-
37
- 使用外网免费数据库https://app.mongohq.com
38
-
39
- 测试部署分支
40
-
41
- 尝试bigpige
42
-
43
- 首页利用bigpipe,加载热门股票和热门用户,并且和angular结合使用
30
+ 10 . 使用外网免费数据库https://app.mongohq.com
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ describe('models user', function(){
19
19
setTimeout ( function ( ) {
20
20
user . save ( function ( err , _user ) { } ) ;
21
21
user2 . save ( function ( err , _user ) { } ) ;
22
- } , 50 ) ;
22
+ } , 100 ) ;
23
23
} ) ;
24
24
//删除测试用户
25
25
after ( function ( ) {
@@ -39,7 +39,7 @@ describe('models user', function(){
39
39
user . admin . should . equal ( 100 ) ;
40
40
done ( ) ;
41
41
} ) ;
42
- } , 60 ) ;
42
+ } , 110 ) ;
43
43
} ) ;
44
44
45
45
it ( 'get name empty' , function ( done ) {
Original file line number Diff line number Diff line change 5
5
//test models 数据库接口
6
6
7
7
var topic = require ( './models/user' ) ;
8
- // var topic=require('./models/topic');
9
- // var topic=require('./models/stoc');
10
- // var topic=require('./models/room');
8
+ var topic = require ( './models/topic' ) ;
9
+ var topic = require ( './models/stoc' ) ;
10
+ var topic = require ( './models/room' ) ;
11
11
12
12
//test rount 路由
13
13
Original file line number Diff line number Diff line change 14
14
15
15
<script src =" /socket.io/socket.io.js" ></script >
16
16
</head >
17
- <body ng-app = " App " >
17
+ <body >
You can’t perform that action at this time.
0 commit comments