Font Size: a A A

Design And Implementation Of Front-end Development Framework Based On Vue

Posted on:2021-03-19Degree:MasterType:Thesis
Country:ChinaCandidate:P T XuFull Text:PDF
GTID:2428330602483998Subject:Computer technology
Abstract/Summary:PDF Full Text Request
Web applications are an important part of the entire Internet and software industry.In recent years,with the rapid development of Web front-end technology,users' experience and usability requirements for the product have been greatly improved,but this has also led to further increase the difficulty of front-end development.In order to solve the problems of low code reuse,poor scalability,and difficult maintenance in the front-end development process,and further improve development efficiency,the use of framework development has gradually become a trend.JavaScript is mainly used to deal with page interaction and logic in web front-end development,which is the part that developers pay most attention to and the workload.Currently popular JavaScript frameworks Angular.js,React.js,Vue.js,etc can help developers write JavaScript logic,and have their own solutions to the problems encountered in front-end development,such as manipulating DOM and rendering data.But to directly use these frameworks for actual project development,developers still need to do a lot of workIn view of the above problems,this paper analyzes the technical evolution of the front-end architecture and the research and development status at home and abroad,combined with the actual needs of front-end development,researches and develops a set of general-purpose,which is convenient for secondary development on the basis of it Front-end framework.The framework uses the MVVM software architecture design pattern separated by the front and back ends,and the progressive JavaScript framework Vue.js,Webpack construction technology,Element-UI and other technology stacks to develop the framework.This article puts forward the solution of the front-end of the background,distills the typical business model,encapsulates the feature-rich components,and integrates the commonly used functions of the front-end project.Developers can quickly build Web application product prototypes on the basis of the framework to help developers Pay more attention to the design and implementation of specific business logic.This can save development costs on the one hand,and improve development efficiency on the other hand,while enhancing the robustness and standardization of the system.In this paper,the overall architecture design of front-end and back-end separation is carried out on the basis of requirements analysis,and the layered architecture is realized through separation of concerns.In the specific implementation process,a modular development method is adopted.By integrating and encapsulating the universal modules in the front-end project,basic functions such as Token-based authentication login,user information acquisition,and permission control are realized At the same time,the communication module is systematically designed,encapsulates commonly used service API,supports multiple communication protocols,and builds a communication system between the front end and the server.When users use the framework for development,they can directly reuse related modules or perform secondary development on the basis of the modules,which has good scalability.This article introduces the design,implementation and usage instructions of the framework in detail.At the same time,it provides specific solutions to the problems of performance optimization and cross-domain during the construction and deployment processThe framework has been applied to the development of multiple Web projects,and has achieved certain results,improving development efficiency.
Keywords/Search Tags:Vue, Front-end Separation, Layered Architecture, Permission Control
PDF Full Text Request
Related items