基于node46js的小型框架设计与实现毕业设计40论文

上传人:xiao****1972 文档编号:116416473 上传时间:2019-11-16 格式:DOC 页数:62 大小:1.18MB
返回 下载 相关 举报
基于node46js的小型框架设计与实现毕业设计40论文_第1页
第1页 / 共62页
基于node46js的小型框架设计与实现毕业设计40论文_第2页
第2页 / 共62页
基于node46js的小型框架设计与实现毕业设计40论文_第3页
第3页 / 共62页
基于node46js的小型框架设计与实现毕业设计40论文_第4页
第4页 / 共62页
基于node46js的小型框架设计与实现毕业设计40论文_第5页
第5页 / 共62页
点击查看更多>>
资源描述

《基于node46js的小型框架设计与实现毕业设计40论文》由会员分享,可在线阅读,更多相关《基于node46js的小型框架设计与实现毕业设计40论文(62页珍藏版)》请在金锄头文库上搜索。

1、计算机科学与技术学院毕业设计(论文)论文题目基于Node.js的小型框架设计与实现指导教师x职 称x学生姓名x学 号x专 业x班 级x系 主 任x院 长x起止时间2012年11月25日至2013年6月6日2013年6月6日目录第一章 绪论51.1 node.js介绍51.2 node.js平台的优势领域61.3 node.js平台的非擅长领域81.4 开发框架的原因101.5开发框架存在的问题111.6本章小结12第二章 开发工具及技术综述122.1使用工具简介132.1.1 文本编辑器Vim132.1.2 git简介152.1.3 javascrip高级语言特性172.2使用平台简介212.

2、2.1 GitHub简介212.2.2 Ubuntu 简介222.3开源协议介绍222.3.1 BSD开源协议222.3.2 Apache Licence 2.0232.3.3 GPL(GNU General Public License)232.3.4 LGPL(GNU Lesser General Public License)232.3.5 MIT242.4 node.js开发环境搭建242.5 本章小结26第三章 框架的设计与实现263.1框架概述263.2开发环境273.2.1 硬件环境273.2.2 软件环境273.3框架基础示意图273.3.1 服务端监听示意图283.3.2横向

3、切面请求拦截器示意图293.3.3路由分发器示意图313.3.4 Cookie示意图333.3.5 Session示意图343.4 本章小结35第四章 核心功能使用364.1 下载FastJsonWeb.364.2 FastJsonWeb文件目录介绍364.3 FastJsonWeb的API说明及使用说明374.3.1 Cookie.js374.3.2 mime.js394.3.3 request_handle.js394.3.4 server.js404.3.5 session.js404.3.6 业务处理对象424.3.7 请求横向切面拦截器434.3.8 动态方法调用434.3.9 属性

4、注入444.4 本章小结46第五章 实例介绍475.1 获取框架475.2 编写业务逻辑475.2.1 设置服务器监听端口475.2.2 实现Hello FastJsonWeb485.2.3 用户登录功能505.3本章小结54第六章 不足与发展556.1 框架的不足556.2 框架的发展576.3 本章小结58参考文献59谢 辞60基于Node.js的小型框架设计与实现摘要:node.js是一种新的软件开发平台,它不仅是一门独立的语言,也与Python、Ruby一样,既是语言也是平台。node.js将javascript从浏览器移植到了普通服务器上。使得javascript也能实现了诸如文件系

5、统、操作系统、网络通信等功能。Node运行在Chorme的V8引擎上,采用异步I/O与事件驱动的架构设计和单线程模型,并且内置了HTTP服务器,主要用于构建高性能,高并发,高扩展的服务器。node.js具有高性能的同时,对于底层的封装比较低,如一般的请求数据等都需要分析Http协议并将所需的数据从request数据流中解析出来,没有提供如java web般丰富的API,这既是优点也是缺点,优点在于为开发者提供了非常大的自由性,可以利用底层接口完成各种各样的功能,缺点在于直接使用底层接口做系统应用开发,效率非常低下,因为需要分析和处理各种数据。node.js刚推广不久,国内还比较缺少使用node

6、.js做应用开发的框架,如果直接使用node.js底层API进行应用开发有较大的困难,基于此点,本论文开发设计一个简单小型的MVC框架,简化node.js的使用的同时提高开发效率。目前 web 应用中,普遍使用了MVC模式(即Model-View-Controller,模型,视图,控制器)。如基于 JAVA EE 的Struts2 + Spring3 + jsp MVC模式等 。借鉴这些其他平台上现有的框架结构和功能,设计开发FastJsonWeb框架。本框架将封装node.js的底层接口,对请求数据等提供统一简洁的方式,从而较大幅度的提升开发效率。基于对不同平台现有框架分析提取出本框架的功能

7、点。这些功能点包括 路由转发与映射,属性注入,Cookie实现,Sesison实现等。关键词:node.js;javascript;ABSTRACTNode.js is not only a separate language,but a new software development platform. Just like the Python and the Ruby, they are both language and platform.Node.js transplant the javascript from your browser to a common server. Th

8、at makes JavaScript can achieve as file systems, operating systems, network communications, and other functions.The Node.js is always running in Chorme V8 engine, with asynchronous I / O and event-driven architecture design and single-threaded model, and built-in HTTP server, mainly for building hig

9、h-performance, high-concurrency, highly scalable server.Node.js really get a high performance ,while the package of bottom part is low enough.For example, the common data requested need analysis of HTTP and analyze the required data from the request data stream,without providing a rich java web API.

10、This style offered an advantage and a disadvantage. The advantage is that it provided the developers with a lot of freedom so that the developers can use the low-level interface to complete a variety of functions, while the disadvantage is that the direct use of the low-level interface for system ap

11、plication development got very low efficiency, because of the analyzing and processing for the various kinds of data need a lot of resources.Node.js is just carried our, in our country, the framework used the node.js in doing application development is still lacking. A directly use of the Node.js un

12、derlying to work on an application development may be much more difficult. In order to deal with this kind of situation, this article will describe a design of a simple and small MVC framework to simplified the use of Node.js, and to improve the development efficiency at the same time.Nowadays, Web

13、applications get a wide use of the MVC pattern (Model-View-Controller, Model, View, Controller). Such as the Struts2 + Spring3 + jsp MVC model based JAVA EE . Learning from the structure and function of these existing framework, this article try to describe the design and development of FastJsonWeb

14、framework. This framework will pack the Node.js underlying interface, and provide a unified and concise manner to the request data, which will improve the development efficiency a lot. This article will extract the framework function points according to the analysis of the existing framework of diff

15、erent platforms. These function points include the route forwarding and mapping, property injection, cookie achievement and Sesison achievement and something more.第一章 绪论 1.1 node.js介绍随着网络技术的发展和网络平台的推广,越来越多的应用是基于网页形式来提供。其中javascript是网页应用技术中不可缺少的一部分。Javascript跟随网络技术的发展得到了也得到了大幅的提升。越来越多的人使用javascript。由于javascript在浏览器端具有极高的执行效率,并且兼容多种流浪器,这促使其中一部分人思考是否可以把javascript放在服务端运行,能够像其他web语言一样提供业务逻辑处理。于是不久node.js便诞生了。node.js是一种新的软件开发平台,它的特殊性决定了它不仅可以作为一门开发编程语言,也可

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 学术论文 > 其它学术论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号