A method and device for building a web front-end local development environment

A development environment and local agent technology, applied in the direction of program control devices, electrical components, transmission systems, etc., can solve the problems of complex front-end code release and online operation, unable to solve the problem of modification and debugging, affecting development efficiency, etc., to achieve convenient development and debugging. Operation, improve development efficiency, reduce risk effect

Active Publication Date: 2016-06-08
ALIBABA GRP HLDG LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Web front-end development engineers need to upload relevant files to the CDN server for debugging and testing when modifying and debugging the problematic content in the project development process of the website every time. Since the operation needs to be completed on the CDN server, if it is For the newly added functions of the project, the source files to be modified may already exist on the CDN server, so uploading new files to overwrite the source files on the CDN server will inevitably cause a lot of risks. Moreover, the front-end code release operation is very complicated, and the Web front-end development engineer The operation of the online environment is very inconvenient, not only cannot solve all the modification and debugging problems, but also greatly affects the development efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for building a web front-end local development environment
  • A method and device for building a web front-end local development environment
  • A method and device for building a web front-end local development environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] In order to make the above objects, features and advantages of the present application more obvious and comprehensible, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0053]The inventor of this patent has noticed that in the prior art, the development environment of the Web front-end depends on the online CDN server. However, in reality, it is impossible for the Web front-end development engineer to transfer the file to the CDN every time the project is modified and debugged. On the server, it is better to modify the debugging project locally until there are no bugs (vulnerabilities), and then publish the resource files (css / js files) to the CDN server. Therefore, one of the core concepts of this application is to simulate the function of a CDN server to build a local development environment for the Web front end.

[0054] This application builds a local development e...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and a device for setting up a Web front-end local development environment. The method includes: presetting a local proxy server; receiving a webpage access request sent by a client by the local proxy server, wherein the webpage access request contains information of a webpage resource file; judging whether a corresponding file exists in the local proxy server or not according to the information of the webpage resource file; if yes, extracting the corresponding file from the local proxy server; if not, issuing a request for obtaining the corresponding file to a content distribution network (CDN) server and receiving the corresponding file returned from the CDN server by the local proxy server; and when the corresponding file is multiple, combining prior to returning the obtained files by the local proxy server. By the method and the device, complexity of front-end code release online operations can be lowered, development efficiency can be improved, and risks for developing and modifying debug files can be lowered.

Description

technical field [0001] This application relates to the technical field of building a local development environment, in particular to a method for building a local development environment for a Web front-end, and a device for building a local development environment for a Web front-end. Background technique [0002] In the process of website development and operation, it is necessary to build a web front-end development environment to develop the project of the website, and to modify and debug the content with problems. In the prior art, the web front-end development environment often needs to use a CDN (Content Delivery Network) server. Specifically, when accessing a web page normally, it will access many resource files, such as css and js files, and the CDN server stores these css and js files. The server of the file, the CDN server has the function of merging and outputting files, so after passing through the CDN server, the resource files that are accessed with access wil...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/44H04L29/08
Inventor 李晶
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products