面向移动Web应用的分布式构建平台的研究与实现
发布时间:2018-12-11 19:33
【摘要】:智能手机的不断普及为移动端应用提供了广阔的发展空间,但差异巨大的移动端平台往往会导致重复开发,移动Web技术的出现解决了平台的差异性问题,在未来有着广阔的发展前景。为了将移动Web应用(主要由Html、Javascript、Css组成)转为各平台的安装包实现在线自动构建,本文基于xFace引擎研究和实现了分布式构建平台。分布式构建平台主要有三种服务器组成:提供Web在线页面服务的前端服务器、提供请求转发的主构建服务器、实现构建流程的平台构建服务器。通过前端服务器提供的在线页面,Web开发人员可以上传Web应用和其他构建资源,可以选择需要的引擎版本和类型,通过构建页面实现了对xFace引擎发布和版本的管理。主构建服务器的设计是为了对平台构建服务器做一个负载均衡的处理,是整个平台的中心节点,所有的构建请求都会经它转发到具体的平台服务器。平台构建服务器是构建流程的实现者,通过模板设计模式将构建的流程确定好,具体的平台服务器只需实现构建的细节,让各平台保持一致的构建流程,避免构建流程的遗漏和出错。平台服务器主要还实现了对引擎插件的裁剪,将构建不需要的插件代码和相关的库文件进行删除,达到减小安装包体积的目的。分布式构建平台的设计很好的满足了平台构建服务器数量的扩展性,新增平台构建服务器时只需要在配置文件的服务器列表中加入新的节点即可,同时也满足了平台构建服务器类型的扩展性,新增构建平台时只需继承基础构建类,在新平台下实现具体的构建细节即可。分布式构建平台的研究与实现让移动Web开发者可以更加专注于自身产品的研发,省去了繁琐的构建环境的搭建,构建设备的采购,节省了在多平台下发布移动应用的经济和时间成本,达到了一次编写,服务器端编译,跨平台运行的理想目标。另外,平台将移动Web应用开发和xFace3引擎开发完全分离,可以提高引擎开发的质量和效率。
[Abstract]:The increasing popularity of smart phones provides a broad development space for mobile applications, but mobile platforms with huge differences often lead to repeated development. The emergence of mobile Web technology solves the problem of platform differences. There are broad prospects for development in the future. In order to transform mobile Web application (mainly composed of Html,Javascript,Css) into installation package of each platform to build automatically online, this paper researches and implements distributed building platform based on xFace engine. The distributed building platform consists of three kinds of servers: the front-end server that provides the Web online page service, the main build server that provides the request forwarding, and the platform build server that realizes the build process. Through the online pages provided by the front-end server, Web developers can upload Web applications and other build resources, choose the required engine version and type, and manage the release and version of the xFace engine through the build page. The master build server is designed to deal with the load balance of the platform build server and is the central node of the whole platform. All the building requests will be forwarded to the concrete platform server through it. The platform build server is the implementer of the build process. The platform server only needs to realize the details of the build, and the platform server can keep the construction process consistent with the template design pattern. Avoid omissions and errors in the build process. The platform server also mainly implements the engine plug-in clipping, will build unnecessary plug-in code and related library files to delete to achieve the purpose of reducing the size of the installation package. The design of distributed building platform satisfies the extensibility of the number of platform build servers. When adding new platform build servers, we only need to add new nodes to the list of servers in the configuration file. At the same time, it also satisfies the extensibility of the platform build server type. When the platform is built, it only needs to inherit the basic building class and realize the concrete construction details under the new platform. The research and implementation of distributed construction platform enables mobile Web developers to focus more on their own product development, eliminating the tedious construction environment, construction equipment procurement, It saves the economic and time cost of publishing mobile applications on multiple platforms, and achieves the ideal goal of once compiling, compiling on server side, and running across platforms. In addition, the platform completely separates mobile Web application development from xFace3 engine development, which can improve the quality and efficiency of engine development.
【学位授予单位】:电子科技大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TP311.52;TP393.09
,
本文编号:2373108
[Abstract]:The increasing popularity of smart phones provides a broad development space for mobile applications, but mobile platforms with huge differences often lead to repeated development. The emergence of mobile Web technology solves the problem of platform differences. There are broad prospects for development in the future. In order to transform mobile Web application (mainly composed of Html,Javascript,Css) into installation package of each platform to build automatically online, this paper researches and implements distributed building platform based on xFace engine. The distributed building platform consists of three kinds of servers: the front-end server that provides the Web online page service, the main build server that provides the request forwarding, and the platform build server that realizes the build process. Through the online pages provided by the front-end server, Web developers can upload Web applications and other build resources, choose the required engine version and type, and manage the release and version of the xFace engine through the build page. The master build server is designed to deal with the load balance of the platform build server and is the central node of the whole platform. All the building requests will be forwarded to the concrete platform server through it. The platform build server is the implementer of the build process. The platform server only needs to realize the details of the build, and the platform server can keep the construction process consistent with the template design pattern. Avoid omissions and errors in the build process. The platform server also mainly implements the engine plug-in clipping, will build unnecessary plug-in code and related library files to delete to achieve the purpose of reducing the size of the installation package. The design of distributed building platform satisfies the extensibility of the number of platform build servers. When adding new platform build servers, we only need to add new nodes to the list of servers in the configuration file. At the same time, it also satisfies the extensibility of the platform build server type. When the platform is built, it only needs to inherit the basic building class and realize the concrete construction details under the new platform. The research and implementation of distributed construction platform enables mobile Web developers to focus more on their own product development, eliminating the tedious construction environment, construction equipment procurement, It saves the economic and time cost of publishing mobile applications on multiple platforms, and achieves the ideal goal of once compiling, compiling on server side, and running across platforms. In addition, the platform completely separates mobile Web application development from xFace3 engine development, which can improve the quality and efficiency of engine development.
【学位授予单位】:电子科技大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TP311.52;TP393.09
,
本文编号:2373108
本文链接:https://www.wllwen.com/guanlilunwen/ydhl/2373108.html