remix7 / ctyping Goto Github PK
View Code? Open in Web Editor NEWtyping
typing
应学院要求制作在线打字程序: 1.需求; >.可以进行英文和中文打字测试。 >.游客可以随机进行打字测试,不需注册登录就能进行练习,并且能实时统计正确率分数。 >.注册用户登录后可以进行打字测试,将单次成绩持久化多次记录分析。 >.断点重启,规定时间内二次登录可以直接继续上次异常退出所进行的打字测试。 >.时间统计 >.成绩分析 2.设计; >.英文打字和中文利用ascii比对正确在页面设置字体颜色为绿色,错误为红色 正在比对的字为黑底白字。 >.断点重打采用ajax模拟心跳操作,用户每输入一个字或者一个字符(或者每10秒)向服务器发送一个请求, 将用户已经打到字作为参数,服务器在收到请求时就会认为这个节点是正常的并且会把节点带来的数据 持久化到,管理员可以实时监控进度。服务器在收到请求后会向该节点写一段json 如果有json返回 说明服务器处于正常状态。若无返回则说明服务器已经挂掉,此时给予用户友好提示。 >.时间问题:每个节点单独计算时间 集体的打字比较也同样是单独计时 到时间自动提交 js将成绩正确率算好 发送到服务器 由服务器来进行排序 最终返回这次打字测试的排名。排名的计算由所用时间,正确率和分 数决定。 >.。。。。。 3.架构 >.服务器端采用spring,springmvc,mybatis (shrio暂时不加) URL全部以REST风格。 >.数据库采用mysql 5.6 数据库名为ctyping >.前端使用。。。 4.数据库设计; 表前缀 ctyping_ (*)为必填项 (-)为缺省项 >.用户表 ctyping_user id*,用户名*,密码*,真实姓名*,学号-,手机号-,邮箱-,注册时间*,状态*,备注-; >.题库表 ctyping_questions id*,标题*,内容*,难度系数-,字数*,状态*,备注-; >.测试表 ctyping_exams id*,名称*,开始时间*,结束时间*,题目编号*,创建时间*,状态*,备注-; >.测试记录表 ctyping_exam_recodes id*,测试编号*,用户编号*,内容记录*,所用时间*,更新时间*,状态*,备注-; >.成绩表 ctyping_scores id*,测试编号*,用户编号*,内容记录*,所用时间*,得分*,正确率*,排名*,状态*,备注-;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.