基于微信公众号的图书借阅平台设计与实现 毕业论文+项目源码
摘要很多的高校为了方便学生对图书的查看和订阅,都推出了图书馆管理系统,但是大部分的图书馆管理系统是基于互联网部署使用的,对环境的依赖性比较大.随着信息技术的不断发展,我国已经进入了微服务时代,通过移动APP和微信公众号向用户提供信息服务已经成为了主流的趋势,鉴于APP需要下载安装,占用内存比较大。本微信图书借阅平台是一个完整的B/S架构的实现,在服务器端通过Nginx监听用户请求并分发请求给StrongLoop进程管理器,StrongLoop创建多个slave进程维护Node.js实例来处理用户请求,Node.js作为中间层可以构建在任何其他语言的后端之上,通过基于RESTful规则设计的接口可以建立Node.js中间层与其他后端语言的数据通信。数据库采用MySQL、通过Jade模板引擎实现服务端HTML预渲染、在客户端通过微信内置的Blink内核的WebView作为与用户交互的入口、UI效果展示采Bootstrapcss界面库快速制作移动端友好的响应式界面。关键词:微信;公众号;图书管理;借阅;Node.jsAbstractIn order to facilitate students' view and subscribe to books, many universities have launched library management systems, but most library management systems are based on the Internet deployment and are relatively dependent on the environment. With the continuous development of information technology, China has entered the era of micro-service. It has become a mainstream trend to provide information services to users through mobile APP and WeChat public account. In view of the need for APP to download and install, it occupies a relatively large memory.This WeChat book lending platform is the implementation of a complete B / S architecture that listens for user requests on the server-side through Nginx and distributes requests to the StrongLoop Process Manager, StrongLoop creates multiple instances of slave process maintenance Node.js to process user requests, Node.js as the middle layer can be built above the back end of any other language, and the Node.js middle layer and other back-end languages can be established through an interface designed based on RESTful rules.The database uses MySQL, service HTML pre-rendering through Jade template engine, WebView through the wechat built-in Blink kernel on the client as the entrance for interaction with users, and UI effect display Bootstrapcss interface library quickly makes a mobile end-friendly responsive interface.Key words: WeChat; public account; book management; borrowing; Node.js目录摘要 1Abstract 21 引言 11.1项目研究背景 21.2 项目研究内容 41.3 项目研究意义 62 技术选型与开发环境 82.1 技术选型 82.1.1Node.js介绍 82.1.2 异步编程介绍 92.1.3 阻塞和非阻塞介绍 102.1.4 MySQL数据库介绍 112.1.5 Nginx服务器介绍 132.1.6StrongLoop进程管理器介绍 132.1.7微信公众号平台介绍 133 需求分析 153.1 技术需求 153.2 功能需求 173.3 系统操作流程 173.3.1 关注微信图书借阅平台 173.3.2 功能菜单 173.3.3 扫码 183.3.4 确认操作 184.系统设计 194.1概要设计 194.2详细设计 204.2.1 微信公众号设置 204.2.2 获取图书信息 204.2.3 存储图书信息 214.2.4 展示图书信息 215数据库设计 235.1概念结构设计 235.2物理结构设计 236.图书借阅平台的实现 266.1配置 266.2主界面 266.2添加图书 276.3借阅图书 286.4归还图书 296.5浏览图书 30参考文献 32