论文总字数:33387字
摘 要
如今,移动互联网正成为当今世界发展最快、市场潜力最大、前景最诱人的领域。目前现在在校大学生有许许多多关于闲置物品买卖,学车,留学,旅游等需求。因此将大学生的这些需求和移动互联网相结合,会具有非常大的意义和前景。
本文设计与实现了一个校园应用服务端,建立平台以解决目前大学校园中学生的一系列需求,包括学车,闲置物品买卖,旅游等。服务端基于python的tornado web框架,使用RESTful API框架,数据库使用了mongoDB,并在服务端使用nginx作为反向代理和静态网页服务器,网络请求采用https协议以确保安全。
本文首先介绍和分析了RESTful API,NoSQL,https,tornado框架等相关技术,分析比较了这些技术和类似技术的优缺点,并对这些相关技术运用于本系统的可行性进行了分析。之后分析了本设计的相关需求,确定了基于tornado,RESTful API和mongoDB的服务端设计方案。将本设计的功能大致分为用户,商铺,商品,闲置,订单五个功能模块,并针对这五个模块,分别对其功能需求进行了拆分分析,小结了服务端需要提供的API接口。针对本应用的功能需求,结合上述技术,提出了基于mongodb数据库和tornado框架的服务端系统架构,并利用nginx等成熟技术加强服务端架构的性能。之后,本文针对应用各个功能模块,阐述了其业务逻辑和数据库的设计,以及其具体的实现方式。 最后,本文介绍了系统测试的常用方法,并对本系统进行了单元测试,功能性测试和安全性测试,确保本系统实现良好。
最后,本文对此课题的设计和开发过程进行了总结,并对后续工作进行了展望。
关键词: RESTful API, Tornado服务器,mongoDB
Design and Implementation of Mobile Campus Applications - Yoyo campus Server
Abstract
Today, the mobile Internet is becoming the field with the world's fastest growing and largest market potential and the most attractive prospects. Currently there are many college students having demands for the trading of unused items , learning to drive, travelling and so on. Therefore, combining these demands of students with mobile Internet will have great significance and prospects .
This paper designed and implemented a campus application server based on RESTful api, creating a platform to meet the current demands of students in the university, including learning to drive, trading of unused items and traveling.
First, this paper introduces and analyzes some related technology such as RESTful API, NoSQL, https, tornado web framework and others, and analyzes and compares the advantages and disadvantages of these technologies and similar technologies.And the feasibility of the use of these technologies is analysed. After analyzing the relevant needs of the design, the function is broadly divided into five functional modules : user , shops, goods,idle and order.And these five moudles are broadly analysed . The paper summaries what interfaces the system needs to provide. For the functional requirements of the application,combining the technologies above, this paper proposes server architecture based mongodb database and tornado web framework and applies mature technologies such as nginx to enhance the performance of the server architecture. Thereafter, for each function module,this paper describes the design of its business logic and database , as well as its specific implementation, respectively. Finally, this paper describes common methods of system testing and applies unit testing ,functional testing and security testing to the system to ensure that the system is implied well.
Finally, the design and development process of the system are summarized, and the follow-up work in the future is prospected.
KEY WORDS: RESTful API,Tornado Web Server, mongodb
目 录
摘要 ……………………………………………………………………………………1
Abstract …………………………………………………………………………… 2
- 绪论 ………………………………………………………………………4
1.1 课题背景 ……………………………………………………………4
1.2 课题任务 …………………………………………………………………4
1.3 关键问题 …………………………………………………………………4
1.4 主要工作内容 ……………………………………………………………4
- 相关技术 ……………………………………………………………………6
2.1 RESTful API ………………………………………………………………6
2.2 NoSQL技术 ………………………………………………………………7
2.3 Tornado框架 ………………………………………………………………7
2.4 Https数据加密传输 ……………………………………………………9
- 系统设计 ……………………………………………………………………12
3.1 需求分析 …………………………………………………………………12
3.2 系统架构 …………………………………………………………………13
3.3 业务逻辑 …………………………………………………………………14
3.4 关键功能 …………………………………………………………………21
- 系统实现 ……………………………………………………………………23
4.1 系统开发 …………………………………………………………………23
4.2 服务端部署 ………………………………………………………………25
- 系统测试 ……………………………………………………………………27
5.1 单元测试 …………………………………………………………………27
5.2 功能性测试 …………………………………………………………………27
5.3 安全测试 …………………………………………………………………30
- 结语 ………………………………………………………………………31
6.1 工作总结 …………………………………………………………………31
6.2 后续工作 …………………………………………………………………31
附录一 服务端API接口一览 …………………………………………………………32
参考文献(References) ………………………………………………………………37
- 绪 论
1.1 课题背景
随着移动终端技术和宽带无线接入技术的飞速发展,移动互联网正侵入到我们生活的方方面面,改变着我们的生活。移动互联网成为当今世界发展最快、前景最诱人,市场潜力最大的领域。音乐、游戏、视频应用、手机支付、位置服务等丰富多彩的移动互联网应用迅猛发展,前景广阔,充满机遇。
剩余内容已隐藏,请支付后下载全文,论文总字数:33387字
该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;