摘 要
在web应用日趋发展的状况下,在社交应用中,文章发布系统的身影变得越来越频繁,通过记录文章发布系统的方式,用户可以自己记录自己的所思所想。
本论文首先对于文章发布系统的开发原理,即开发背景和设计的目的进行阐述,并对于文章发布系统开发的时候利用到的各种技术及一些开发工具进行介绍。在论文的系统分析模块,对于系统的构建模型进行简单展现,并展示本项目的运行流程,结合网络上已有的各种Node.js模块和当前的技术条件,对本文章发布系统的开发可行性进行证明。在系统设计实现的部分,由需求分析中得到各类信息,对文章发布系统的不同功能进行模块分解和数据结构的构建,利用用例图,数据流图等工具进行更深层次的说明。之后会对开发后的系统进行分类测试。
最后将会展示文章发布系统在部署到远程服务器上的相关说明。本文章发布系统在开发中使用面向对象的编程思想,运用了MVC的设计模式与restful的api设计风格,搭建在基于Google V8引擎的Node.js运行环境上。为了与Node.js有最好的兼容性,本文章发布系统采用了Express框架对整体项目进行搭建,以ejs引擎模板渲染前端界面,使用了Mysql非关系型数据库作为后端数据库。
关键词:文章发布系统;NodeJS;Express;Mysql
Abstract
As the web application is developing, in the social application, the figure of the article publishing system becomes more and more frequent. By recording the article publishing system, users can record their own thoughts and thoughts.
This paper first describes the development principle of the article publishing system, that is, the development background and the purpose of the design, and introduces various technologies and some development tools used in the development of the article publishing system. At the system analysis module of the paper, the construction model of the system is simply displayed, and the running flow of the project is displayed. Combined with various Node.js modules and current technical conditions existing on the network, the feasibility of the development of the system is proved. In the part of system design and implementation, all kinds of information are obtained from requirement analysis, and the module decomposition and number of different functions of the article publishing system are carried out According to the construction of the structure, use case diagram, data flow diagram and other tools for a deeper explanation. The developed system is then tested for classification.
Finally, a description of the article publishing system deployed to a remote server is presented. This article publishes the system in the development uses the object-oriented programming thought, uses the MVC design pattern and the restful api design style, constructs in the Google V8 engine-based Node.js operation environment. To have the best compatibility with Node.js, this article publishing system uses the Express framework to build the whole project to render the front-end interface ejs the engine template, and uses the Mysql non-relational database as the back-end database.
Keywords: article publishing system; NodeJS;Express;Mysql