摘 要: 针对目前智能课堂的研究,关于课程的管理系统就提出来了。因此,开发了一种基于Tornado和React技 术的课程管理系统。通过Tornado框架作为后端框架,实现数据库中数据的增、删、改、查操作,Tornado与现在主流 的Web服务器框架相比有着明显的优势:它是非阻塞式服务器,而且速度相当快,这对于当下的Web开发来说至关重 要。前端部分采用React技术将前台表单中输入的数据传输到后端数据库中,并且对数据库中的数据进行相应的操作, React的一切都是组件化的,使得代码更加的模块化,重用代码将变得更加容易,可维护性极高。该系统的开发过程还 彻底的实现了前后端分离,前后端的联系仅靠API联系起来,前端部分的开发引用了Mock-api这一虚拟的服务端接口 完成前端部分开发。这一开发技术路线充分展现了Tornado和React对Web开发的优势所在,也可以提高这一系统的可 维护性。 |
关键词: Tornado;React;Mock-api;管理系统 |
中图分类号: TP315
文献标识码: A
|
|
Design and Implementation of the Curriculum Management System Based on Tornado |
LIU Tao,SUN Xi,YI Shankai
|
( University of Shanghai for Science and Technology, Shanghai 200093, China)
|
Abstract: In view of the current researches on intelligent classroom,the curriculum management system has been put forward.Therefore,a curriculum management system based on Tornado and React has been developed where Tornado framework is used as the back-end framework to realize the operation of adding,deleting and checking data in the database. Compared with the current mainstream Web server frameworks,Tornado has obvious advantages:it is a non-blocking server,and its speed is quite fast,which is very important for current Web development.The front-end part uses React technology to transfer the data input from the front-end forms to the back-end database,and carries on the corresponding operation of the data in the database.React is wholly component-based,which makes the codes more modularized,and makes the reuse of the codes easier and more maintainable.The development process of the system also completely realizes the separation of front and back ends.The connection between front and back ends only depends on API.The development of front-end part refers to Mock-api,a virtual server interface,to complete the separation of front and back ends.This development technology fully demonstrates the advantages of Tornado and React for Web development,and also improves the maintainability of this system. |
Keywords: Tornado;React;Mock-api;management system |