面向移動(dòng)Web應(yīng)用的分布式構(gòu)建平臺(tái)的研究與實(shí)現(xiàn)
發(fā)布時(shí)間:2018-12-11 19:33
【摘要】:智能手機(jī)的不斷普及為移動(dòng)端應(yīng)用提供了廣闊的發(fā)展空間,但差異巨大的移動(dòng)端平臺(tái)往往會(huì)導(dǎo)致重復(fù)開(kāi)發(fā),移動(dòng)Web技術(shù)的出現(xiàn)解決了平臺(tái)的差異性問(wèn)題,在未來(lái)有著廣闊的發(fā)展前景。為了將移動(dòng)Web應(yīng)用(主要由Html、Javascript、Css組成)轉(zhuǎn)為各平臺(tái)的安裝包實(shí)現(xiàn)在線(xiàn)自動(dòng)構(gòu)建,本文基于xFace引擎研究和實(shí)現(xiàn)了分布式構(gòu)建平臺(tái)。分布式構(gòu)建平臺(tái)主要有三種服務(wù)器組成:提供Web在線(xiàn)頁(yè)面服務(wù)的前端服務(wù)器、提供請(qǐng)求轉(zhuǎn)發(fā)的主構(gòu)建服務(wù)器、實(shí)現(xiàn)構(gòu)建流程的平臺(tái)構(gòu)建服務(wù)器。通過(guò)前端服務(wù)器提供的在線(xiàn)頁(yè)面,Web開(kāi)發(fā)人員可以上傳Web應(yīng)用和其他構(gòu)建資源,可以選擇需要的引擎版本和類(lèi)型,通過(guò)構(gòu)建頁(yè)面實(shí)現(xiàn)了對(duì)xFace引擎發(fā)布和版本的管理。主構(gòu)建服務(wù)器的設(shè)計(jì)是為了對(duì)平臺(tái)構(gòu)建服務(wù)器做一個(gè)負(fù)載均衡的處理,是整個(gè)平臺(tái)的中心節(jié)點(diǎn),所有的構(gòu)建請(qǐng)求都會(huì)經(jīng)它轉(zhuǎn)發(fā)到具體的平臺(tái)服務(wù)器。平臺(tái)構(gòu)建服務(wù)器是構(gòu)建流程的實(shí)現(xiàn)者,通過(guò)模板設(shè)計(jì)模式將構(gòu)建的流程確定好,具體的平臺(tái)服務(wù)器只需實(shí)現(xiàn)構(gòu)建的細(xì)節(jié),讓各平臺(tái)保持一致的構(gòu)建流程,避免構(gòu)建流程的遺漏和出錯(cuò)。平臺(tái)服務(wù)器主要還實(shí)現(xiàn)了對(duì)引擎插件的裁剪,將構(gòu)建不需要的插件代碼和相關(guān)的庫(kù)文件進(jìn)行刪除,達(dá)到減小安裝包體積的目的。分布式構(gòu)建平臺(tái)的設(shè)計(jì)很好的滿(mǎn)足了平臺(tái)構(gòu)建服務(wù)器數(shù)量的擴(kuò)展性,新增平臺(tái)構(gòu)建服務(wù)器時(shí)只需要在配置文件的服務(wù)器列表中加入新的節(jié)點(diǎn)即可,同時(shí)也滿(mǎn)足了平臺(tái)構(gòu)建服務(wù)器類(lèi)型的擴(kuò)展性,新增構(gòu)建平臺(tái)時(shí)只需繼承基礎(chǔ)構(gòu)建類(lèi),在新平臺(tái)下實(shí)現(xiàn)具體的構(gòu)建細(xì)節(jié)即可。分布式構(gòu)建平臺(tái)的研究與實(shí)現(xiàn)讓移動(dòng)Web開(kāi)發(fā)者可以更加專(zhuān)注于自身產(chǎn)品的研發(fā),省去了繁瑣的構(gòu)建環(huán)境的搭建,構(gòu)建設(shè)備的采購(gòu),節(jié)省了在多平臺(tái)下發(fā)布移動(dòng)應(yīng)用的經(jīng)濟(jì)和時(shí)間成本,達(dá)到了一次編寫(xiě),服務(wù)器端編譯,跨平臺(tái)運(yùn)行的理想目標(biāo)。另外,平臺(tái)將移動(dòng)Web應(yīng)用開(kāi)發(fā)和xFace3引擎開(kāi)發(fā)完全分離,可以提高引擎開(kāi)發(fā)的質(zhì)量和效率。
[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.
【學(xué)位授予單位】:電子科技大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2014
【分類(lèi)號(hào)】:TP311.52;TP393.09
,
本文編號(hào):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.
【學(xué)位授予單位】:電子科技大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2014
【分類(lèi)號(hào)】:TP311.52;TP393.09
,
本文編號(hào):2373108
本文鏈接:http://sikaile.net/guanlilunwen/ydhl/2373108.html
最近更新
教材專(zhuān)著