CN110096263A - Web front end code automatic generation method and device - Google Patents

Web front end code automatic generation method and device Download PDF

Info

Publication number
CN110096263A
CN110096263A CN201910350751.9A CN201910350751A CN110096263A CN 110096263 A CN110096263 A CN 110096263A CN 201910350751 A CN201910350751 A CN 201910350751A CN 110096263 A CN110096263 A CN 110096263A
Authority
CN
China
Prior art keywords
command
line tool
template
code
business module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201910350751.9A
Other languages
Chinese (zh)
Inventor
钱学敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seashell Housing Beijing Technology Co Ltd
Original Assignee
Beike Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beike Technology Co Ltd filed Critical Beike Technology Co Ltd
Priority to CN201910350751.9A priority Critical patent/CN110096263A/en
Publication of CN110096263A publication Critical patent/CN110096263A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the present invention provides a kind of web front end code automatic generation method and device, wherein, method includes: that the partial code that similarity is greater than preset threshold in all business modules that will acquire is abstracted as template, by the inner formwork into the command-line tool developed in advance;Extract variable of the discrepant partial code as template built-in in the command-line tool in the template;When the command-line tool receives the order for increasing business module, the parameter of the Added Business module of user's input is obtained;The parameter for the Added Business module that the user inputs is replaced to the variable of template built-in in the command-line tool, generates web front end code, and the web front end code of generation is written in destination item file.The embodiment of the present invention can fast and automatically generate web front end code, and workload repeats during solving the problems, such as business development, improve development efficiency.

Description

Web front end code automatic generation method and device
Technical field
The present embodiments relate to field of computer technology more particularly to a kind of web front end code automatic generation method and Device.
Background technique
During business development, a business module is often increased newly, developer will complete the newly-built page, configuration Models (model), configuration services (service), routing table, configuration menu item this series of work are configured, to generate Web (global wide area network or WWW) front-end code.
When developing multiple business modules, these processes are duplicate for developer, and it is low to will lead to development efficiency Under.Since the similarity of each module is very high, in order to improve development efficiency, the method that tradition generates web front end code at present is multiple Old block code is made to modify.
But since code file is more dispersed, when replicating old block code and modifying, the workload of replicating code It is not small.Moreover, during modifying replicating code, because being doped with the variation of service logic, it is also possible to bring additional Workload.
Summary of the invention
In view of the problems of the existing technology, the embodiment of the present invention provide a kind of web front end code automatic generation method and Device.
The embodiment of the present invention provides a kind of web front end code automatic generation method, comprising:
The partial code that similarity is greater than preset threshold in all business modules that will acquire is abstracted as template, will be described Inner formwork is into the command-line tool developed in advance;
Extract variable of the discrepant partial code as template built-in in the command-line tool in the template;
When the command-line tool receives the order for increasing business module, the Added Business module of user's input is obtained Parameter;
The parameter for the Added Business module that the user inputs is replaced to the change of template built-in in the command-line tool Amount generates web front end code, and the web front end code of generation is written in destination item file.
Optionally, the partial code that similarity is greater than preset threshold in all business modules that will acquire is abstracted as mould Plate, by the inner formwork into the command-line tool developed in advance before, the method also includes:
Command-line tool is developed in advance using Node.js development platform, is had the command-line tool and is output and input Function.
Optionally, the partial code that similarity is greater than preset threshold in all business modules that will acquire is abstracted as Template, by the inner formwork into the command-line tool developed in advance, comprising:
Obtain the similarity of each section code in all business modules;
The similarity is compared with preset threshold, similarity is greater than default in all business modules that will acquire The partial code of threshold value is abstracted as template;
By the inner formwork into the command-line tool developed in advance.
Optionally, the change of template built-in in discrepant partial code or the command-line tool in the template Amount, comprising: code authors, creation time, file name and business module name.
Optionally, when the command-line tool receives the order for increasing business module, the newly-increased of user's input is obtained The parameter of business module, comprising:
When the command-line tool receives the order for increasing business module, the code file for needing to automatically generate is judged Whether have existed;
If desired the code file automatically generated is not present, then obtains the parameter of the Added Business module of user's input.
Optionally, after obtaining the parameter of Added Business module of user's input, the method also includes:
Regular verification is carried out to the parameter of the Added Business module of user input;
If the parameter of the Added Business module of user's input is by rule verification, to the version of the command-line tool This is detected, and when the version of the command-line tool is not latest edition, shows the first prompt information to user, and described the One prompt information for prompt user by the version updating of the command-line tool be latest edition;
Correspondingly, the parameter for the Added Business module that the user inputs is replaced to mould built-in in the command-line tool The variable of plate generates web front end code, and the web front end code of generation is written in destination item file, comprising:
When the version of the command-line tool is latest edition, template built-in in the command-line tool is read, it will The change of template built-in in the command-line tool is replaced by the parameter of the Added Business module of user's input of rule verification Amount generates web front end code, and the web front end code of generation is written in destination item file.
The embodiment of the present invention provides a kind of web front end code automatically generating device, comprising:
Built-in module, in all business modules for will acquire similarity be greater than preset threshold partial code it is abstract For template, by the inner formwork into the command-line tool developed in advance;
Extraction module, for extracting discrepant partial code in the template as built-in in the command-line tool The variable of template;
Module is obtained, for obtaining user's input when the command-line tool receives the order for increasing business module Added Business module parameter;
Generation module, the parameter of the Added Business module for inputting the user are replaced in the command-line tool The variable for the template set generates web front end code, and the web front end code of generation is written in destination item file.
Optionally, described device further include:
Development module has the command-line tool for using Node.js development platform to develop command-line tool in advance It is standby to output and input function.
The embodiment of the present invention provides a kind of electronic equipment, including memory, processor and storage are on a memory and can be The computer program run on processor, the processor are realized when executing described program such as the step of the above method.
Web front end code automatic generation method and device provided in an embodiment of the present invention, pass through all industry that will acquire The partial code that similarity is greater than preset threshold in business module is abstracted as template, by the inner formwork to the order developed in advance In row tool, variable of the discrepant partial code as template built-in in the command-line tool in template is extracted, is being ordered When row tool being enabled to receive the order for increasing business module, the parameter of the Added Business module of user's input is obtained, user is defeated The variable of built-in template, generates web front end code, and will give birth in the parameter replacement command-line tool of the Added Business module entered At web front end code write-in destination item file in, thereby, it is possible to fast and automatically generate web front end code, improve exploitation Efficiency.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow diagram for web front end code automatic generation method that one embodiment of the invention provides;
Fig. 2 is a kind of structural schematic diagram for web front end code automatically generating device that one embodiment of the invention provides;
Fig. 3 is the entity structure schematic diagram for the electronic equipment that one embodiment of the invention provides.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 shows a kind of flow diagram of web front end code automatic generation method of one embodiment of the invention offer, As shown in Figure 1, the web front end code automatic generation method of the present embodiment, comprising:
The partial code that similarity is greater than preset threshold in S1, all business modules that will acquire is abstracted as template, will The inner formwork is into the command-line tool developed in advance.
In a particular application, the preset threshold can be arranged in the present embodiment according to the actual situation, and the present embodiment is not right It is limited, and similarity can be greater than preset threshold and is interpreted as similarity height.
It should be noted that the executing subject of the present embodiment the method is processor.
S2, change of the discrepant partial code as template built-in in the command-line tool in the template is extracted Amount.
In a particular application, discrepant partial code may include: code authors, creation time, text in the template Part title and business module name etc., the present embodiment is not limited.
S3, the command-line tool receive increase business module order when, obtain user input Added Business The parameter of module.
In a particular application, corresponding with discrepant partial code in the template, it is built-in in the command-line tool Template variable, may include: code authors, creation time, file name and business module name etc., the present embodiment is not right It is limited.
S4, the parameter for the Added Business module that the user inputs is replaced to template built-in in the command-line tool Variable generates web front end code, and the web front end code of generation is written in destination item file.
It is understood that since the similarity of business module each during business development is very high, the present embodiment is by each industry The partial code that similarity is greater than preset threshold in business module regards the high partial code of similarity as, by similarity high part generation Code is abstracted as template and is built into the command-line tool developed in advance, using partial code discrepant in template as order line The variable of built-in template in tool, when increasing the order of business module using the command-line tool, by user's input The variable of built-in template, generates web front end code and target is written in the parameter replacement command-line tool of Added Business module In item file, web front end code can be fast and automatically generated, improves development efficiency.
Web front end code automatic generation method provided in an embodiment of the present invention passes through all business modules that will acquire The partial code that middle similarity is greater than preset threshold is abstracted as template, by the inner formwork to the command-line tool developed in advance In, variable of the discrepant partial code as template built-in in the command-line tool in template is extracted, in order line work When tool receives the order for increasing business module, the parameter of the Added Business module of user's input is obtained, by the new of user's input The variable for increasing template built-in in the parameter replacement command-line tool of business module, generates web front end code, and by generation Web front end code is written in destination item file, thereby, it is possible to fast and automatically generate web front end code, solves business development The problem of workload repeats in the process improves development efficiency.
Further, on the basis of the above embodiments, before the step S1, the present embodiment the method can be with Include:
Exploitation command-line tool in advance, has the command-line tool and outputs and inputs function.
In a particular application, for example, Node.js development platform can be used and develop command-line tool in advance, make institute It states command-line tool and has and output and input function.
In this way, the present embodiment can use exploitation command-line tool in advance, subsequent web front end Code automatic build is carried out Work.
Further, on the basis of the above embodiments, the step S1 may include:
Obtain the similarity of each section code in all business modules;
The similarity is compared with preset threshold, similarity is greater than default in all business modules that will acquire The partial code of threshold value is abstracted as template;
By the inner formwork into the command-line tool developed in advance.
In this manner it is achieved that the partial code that similarity is greater than preset threshold in all business modules that will acquire is abstracted For template, by the inner formwork into the command-line tool developed in advance.
Further, on the basis of the above embodiments, the step S3 may include:
When the command-line tool receives the order for increasing business module, the code file for needing to automatically generate is judged Whether have existed;
If desired the code file automatically generated is not present, then obtains the parameter of the Added Business module of user's input.
It is understood that the code file if desired automatically generated exists in the present embodiment, then it is automatic to can return to needs The code file of generation;If desired the code file automatically generated is not present, then obtains the Added Business module of user's input Parameter replaces template built-in in the command-line tool with the parameter of the subsequent Added Business module for inputting the user Variable generates web front end code, and the web front end code of generation is written in destination item file.
Further, on the basis of the above embodiments, after the step S3, the present embodiment the method can be with Include the steps that P1-P2 is not shown in the figure:
P1, regular verification is carried out to the parameter of the Added Business module of user input.
If the parameter for the Added Business module that P2, the user input is by rule verification, to the command-line tool Version detected, when the version of the command-line tool is not latest edition, more by the version of the command-line tool It is newly latest edition.
It is understood that if the parameter of the Added Business module of user input is verified not over rule, it can be with The second prompt information, the ginseng that second prompt information is used to that user to be prompted to re-enter Added Business module are shown to user Number;When the version of the command-line tool is not latest edition, the first prompt information can be shown to user, described first mentions Show information for prompt user by the version updating of the command-line tool be latest edition.
Correspondingly, the step S4, comprising:
When the version of the command-line tool is latest edition, template built-in in the command-line tool is read, it will The change of template built-in in the command-line tool is replaced by the parameter of the Added Business module of user's input of rule verification Amount generates web front end code, and the web front end code of generation is written in destination item file.
Web front end code automatic generation method provided in an embodiment of the present invention makes institute by developing command-line tool in advance It states command-line tool and has and output and input function, the partial code that similarity in each business module is greater than preset threshold is regarded as The high partial code of similarity is abstracted as template and is built into the command-line tool developed in advance by the high partial code of similarity In, using partial code discrepant in template as the variable of template built-in in command-line tool, utilizing the order line When tool increases the order of business module, built in the parameter replacement command-line tool for the Added Business module that user is inputted The variable of template generates web front end code and is written in destination item file, can fast and automatically generate web front end code, Workload repeats during solving the problems, such as business development, improves development efficiency.
Fig. 2 shows one embodiment of the invention provide a kind of web front end code automatically generating device structural schematic diagram, As shown in Fig. 2, the web front end code automatically generating device of the present embodiment, comprising: built-in module 21, obtains mould at extraction module 22 Block 23 and generation module 24;Wherein:
The built-in module 21, similarity is greater than the part generation of preset threshold in all business modules for will acquire Code is abstracted as template, by the inner formwork into the command-line tool developed in advance;
The extraction module 22, for extracting in the template discrepant partial code as in the command-line tool The variable of built-in template;
The acquisition module 23, for obtaining and using when the command-line tool receives the order for increasing business module The parameter of the Added Business module of family input;
The parameter of the generation module 24, the Added Business module for inputting the user replaces the order line work The variable of built-in template in tool generates web front end code, and the web front end code of generation is written in destination item file.
Specifically, similarity is greater than the part of preset threshold in all business modules that the built-in module 21 will acquire Code is abstracted as template, by the inner formwork into the command-line tool developed in advance;The extraction module 22 extracts described Variable of the discrepant partial code as template built-in in the command-line tool in template;The acquisition module 23 is in institute State command-line tool receive increase business module order when, obtain user input Added Business module parameter;It is described The parameter for the Added Business module that the user inputs is replaced template built-in in the command-line tool by generation module 24 Variable generates web front end code, and the web front end code of generation is written in destination item file.
In a particular application, the preset threshold can be arranged in the present embodiment according to the actual situation, and the present embodiment is not right It is limited, and similarity can be greater than preset threshold and is interpreted as similarity height.
It should be noted that the present embodiment described device is applied in processor.
In a particular application, discrepant partial code may include: code authors, creation time, text in the template Part title and business module name etc., the present embodiment is not limited.
In a particular application, corresponding with discrepant partial code in the template, it is built-in in the command-line tool Template variable, may include: code authors, creation time, file name and business module name etc., the present embodiment is not right It is limited.
It is understood that being filled described in the present embodiment since the similarity of business module each during business development is very high It sets and regards the partial code that similarity in each business module is greater than preset threshold as similarity high partial code, by similarity height Partial code be abstracted as template and be built into the command-line tool developed in advance, by partial code discrepant in template make It will be used for the variable of template built-in in command-line tool when increasing the order of business module using the command-line tool The variable of built-in template, generates web front end code simultaneously in the parameter replacement command-line tool of the Added Business module of family input It is written in destination item file, can fast and automatically generate web front end code, improve development efficiency.
Web front end code automatically generating device provided in an embodiment of the present invention can fast and automatically generate web front end generation Code, workload repeats during solving the problems, such as business development, improves development efficiency.
Further, on the basis of the above embodiments, the present embodiment described device can also include not shown in the figure:
Development module has the command-line tool and outputs and inputs function for developing command-line tool in advance.
In a particular application, for example, the development module can be used Node.js development platform and develop order in advance Row tool has the command-line tool and outputs and inputs function.
In this way, the present embodiment can use exploitation command-line tool in advance, subsequent web front end Code automatic build is carried out Work.
Further, on the basis of the above embodiments, the built-in module 21, can be specifically used for
Obtain the similarity of each section code in all business modules;
The similarity is compared with preset threshold, similarity is greater than default in all business modules that will acquire The partial code of threshold value is abstracted as template;
By the inner formwork into the command-line tool developed in advance.
In this manner it is achieved that the partial code that similarity is greater than preset threshold in all business modules that will acquire is abstracted For template, by the inner formwork into the command-line tool developed in advance.
Further, on the basis of the above embodiments, the acquisition module 23, can be specifically used for
When the command-line tool receives the order for increasing business module, the code file for needing to automatically generate is judged Whether have existed;
If desired the code file automatically generated is not present, then obtains the parameter of the Added Business module of user's input.
It is understood that the code file if desired automatically generated exists in the acquisition module 23, then can return to The code file for needing to automatically generate;If desired the code file automatically generated is not present, then obtains the newly-increased industry of user's input The parameter for module of being engaged in is replaced built-in in the command-line tool with the parameter of the subsequent Added Business module for inputting the user Template variable, generate web front end code, and will the web front end code of generation be written destination item file in.
Further, on the basis of the above embodiments, the present embodiment described device can also include not shown in the figure:
Correction verification module, the parameter of the Added Business module for inputting to the user carry out regular verification;
Detection module, if the parameter of the Added Business module for user input is verified by rule, to described The version of command-line tool is detected, when the version of the command-line tool is not latest edition, by the order line work The version updating of tool is latest edition;
Correspondingly, the generation module 24, can be specifically used for
When the version of the command-line tool is latest edition, template built-in in the command-line tool is read, it will The change of template built-in in the command-line tool is replaced by the parameter of the Added Business module of user's input of rule verification Amount generates web front end code, and the web front end code of generation is written in destination item file.
It is understood that the detection module, it may also be used for if the parameter of the Added Business module of user input It is verified not over rule, the second prompt information can be shown to user, second prompt information is for prompting user again The parameter of Added Business module is inputted, and when the version of the command-line tool is not latest edition, it can be to user's exhibition Show the first prompt information, the version updating of the command-line tool is latest edition for prompting user by first prompt information This.
Web front end code automatically generating device provided in an embodiment of the present invention can fast and automatically generate web front end generation Code, workload repeats during solving the problems, such as business development, improves development efficiency.
Web front end code automatically generating device provided in an embodiment of the present invention, can be used for executing preceding method embodiment Technical solution, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Fig. 3 shows the entity structure schematic diagram of a kind of electronic equipment of one embodiment of the invention offer, as shown in figure 3, The electronic equipment may include memory 302, processor 301 and be stored on memory 302 and can run on processor 301 Computer program, the step of processor 301 realizes the above method when executing described program, for example, will acquire All business modules in similarity be greater than the partial code of preset threshold and be abstracted as template, by the inner formwork to opening in advance In the command-line tool of hair;Discrepant partial code in the template is extracted as template built-in in the command-line tool Variable;When the command-line tool receives the order for increasing business module, the Added Business module of user's input is obtained Parameter;The parameter for the Added Business module that the user inputs is replaced to the change of template built-in in the command-line tool Amount generates web front end code, and the web front end code of generation is written in destination item file.
The embodiment of the present invention provides a kind of non-transient computer readable storage medium, is stored thereon with computer program, should The step of above method is realized when computer program is executed by processor, for example, in all business modules that will acquire The partial code that similarity is greater than preset threshold is abstracted as template, by the inner formwork to the command-line tool developed in advance In;Extract variable of the discrepant partial code as template built-in in the command-line tool in the template;Described When command-line tool receives the order for increasing business module, the parameter of the Added Business module of user's input is obtained;It will be described The parameter of the Added Business module of user's input replaces the variable of template built-in in the command-line tool, generates web front end Code, and the web front end code of generation is written in destination item file.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of web front end code automatic generation method characterized by comprising
The partial code that similarity is greater than preset threshold in all business modules that will acquire is abstracted as template, by the template It is built into the command-line tool developed in advance;
Extract variable of the discrepant partial code as template built-in in the command-line tool in the template;
When the command-line tool receives the order for increasing business module, the ginseng of the Added Business module of user's input is obtained Number;
The parameter for the Added Business module that the user inputs is replaced to the variable of template built-in in the command-line tool, it is raw It is written in destination item file at web front end code, and by the web front end code of generation.
2. the method according to claim 1, wherein similarity is greater than in all business modules that will acquire The partial code of preset threshold is abstracted as template, by the inner formwork into the command-line tool developed in advance before, it is described Method further include:
Command-line tool is developed in advance using Node.js development platform, is had the command-line tool and is output and input function.
3. the method according to claim 1, wherein similarity is big in all business modules that will acquire It is abstracted as template in the partial code of preset threshold, by the inner formwork into the command-line tool developed in advance, comprising:
Obtain the similarity of each section code in all business modules;
The similarity is compared with preset threshold, similarity is greater than preset threshold in all business modules that will acquire Partial code be abstracted as template;
By the inner formwork into the command-line tool developed in advance.
4. the method according to claim 1, wherein discrepant partial code or the life in the template Enable the variable of template built-in in row tool, comprising: code authors, creation time, file name and business module name.
5. increasing business module the method according to claim 1, wherein receiving in the command-line tool When order, the parameter of the Added Business module of user's input is obtained, comprising:
When the command-line tool receives the order for increasing business module, whether the code file for needing to automatically generate is judged It has existed;
If desired the code file automatically generated is not present, then obtains the parameter of the Added Business module of user's input.
6. the method according to claim 1, wherein obtain user input Added Business module parameter it Afterwards, the method also includes:
Regular verification is carried out to the parameter of the Added Business module of user input;
If the parameter of the Added Business module of user input by rule verification, to the version of the command-line tool into Row detection shows the first prompt information to user, described first mentions when the version of the command-line tool is not latest edition Show information for prompt user by the version updating of the command-line tool be latest edition;
Correspondingly, the parameter for the Added Business module that the user inputs is replaced to template built-in in the command-line tool Variable generates web front end code, and the web front end code of generation is written in destination item file, comprising:
When the version of the command-line tool is latest edition, template built-in in the command-line tool is read, will be passed through The parameter of the Added Business module of user's input of rule verification replaces the variable of template built-in in the command-line tool, raw It is written in destination item file at web front end code, and by the web front end code of generation.
7. a kind of web front end code automatically generating device characterized by comprising
Built-in module, the partial code that similarity is greater than preset threshold in all business modules for will acquire are abstracted as mould Plate, by the inner formwork into the command-line tool developed in advance;
Extraction module, for extracting discrepant partial code in the template as template built-in in the command-line tool Variable;
Module is obtained, for obtaining the new of user's input when the command-line tool receives the order for increasing business module Increase the parameter of business module;
Generation module, the parameter of the Added Business module for inputting the user are replaced in the command-line tool built-in The variable of template generates web front end code, and the web front end code of generation is written in destination item file.
8. device according to claim 7, which is characterized in that described device further include:
Development module has the command-line tool defeated for using Node.js development platform to develop command-line tool in advance Enter and output function.
9. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, which is characterized in that the processor is realized when executing described program such as any one of claim 1 to 6 the method Step.
10. a kind of non-transient computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer It is realized when program is executed by processor such as the step of any one of claim 1 to 6 the method.
CN201910350751.9A 2019-04-28 2019-04-28 Web front end code automatic generation method and device Withdrawn CN110096263A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910350751.9A CN110096263A (en) 2019-04-28 2019-04-28 Web front end code automatic generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910350751.9A CN110096263A (en) 2019-04-28 2019-04-28 Web front end code automatic generation method and device

Publications (1)

Publication Number Publication Date
CN110096263A true CN110096263A (en) 2019-08-06

Family

ID=67446208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910350751.9A Withdrawn CN110096263A (en) 2019-04-28 2019-04-28 Web front end code automatic generation method and device

Country Status (1)

Country Link
CN (1) CN110096263A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502242A (en) * 2019-08-26 2019-11-26 深圳前海环融联易信息科技服务有限公司 Code automatic generation method, device, computer equipment and storage medium
CN110531968A (en) * 2019-08-20 2019-12-03 广州华资软件技术有限公司 A method of detaching web front-end function code generates independent template automatically
CN110928539A (en) * 2019-11-20 2020-03-27 北京城市网邻信息技术有限公司 Code engineering generation method and device, electronic equipment and readable storage medium
CN111273898A (en) * 2020-02-25 2020-06-12 安徽以萨数据技术有限公司 Web front-end code automatic construction method, system and storage medium
CN111966350A (en) * 2020-07-20 2020-11-20 深圳市麦谷科技有限公司 Web front-end interface generation method and device
CN112667204A (en) * 2020-12-15 2021-04-16 南方电网数字电网研究院有限公司 Data processing method and device for microservice application and computer equipment
CN112783615A (en) * 2019-11-08 2021-05-11 北京沃东天骏信息技术有限公司 Method and device for cleaning data processing task
CN113110832A (en) * 2021-04-08 2021-07-13 北京联创新天科技有限公司 Intelligent efficient code generation method and device and storage medium
CN114693220A (en) * 2022-05-30 2022-07-01 深圳市爱云信息科技有限公司 Algorithm warehouse management method and system based on digital twin DaaS platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331285A (en) * 2014-10-30 2015-02-04 北京思特奇信息技术股份有限公司 Automatic code generation method and system
CN106874019A (en) * 2017-03-17 2017-06-20 微梦创科网络科技(中国)有限公司 The generation method and skeletal code maker of a kind of skeletal code
CN109582297A (en) * 2018-11-08 2019-04-05 北京达佳互联信息技术有限公司 A kind of generation method of Code Template, device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331285A (en) * 2014-10-30 2015-02-04 北京思特奇信息技术股份有限公司 Automatic code generation method and system
CN106874019A (en) * 2017-03-17 2017-06-20 微梦创科网络科技(中国)有限公司 The generation method and skeletal code maker of a kind of skeletal code
CN109582297A (en) * 2018-11-08 2019-04-05 北京达佳互联信息技术有限公司 A kind of generation method of Code Template, device, electronic equipment and storage medium

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110531968A (en) * 2019-08-20 2019-12-03 广州华资软件技术有限公司 A method of detaching web front-end function code generates independent template automatically
CN110502242A (en) * 2019-08-26 2019-11-26 深圳前海环融联易信息科技服务有限公司 Code automatic generation method, device, computer equipment and storage medium
CN110502242B (en) * 2019-08-26 2022-12-20 深圳前海环融联易信息科技服务有限公司 Code automatic generation method and device, computer equipment and storage medium
CN112783615A (en) * 2019-11-08 2021-05-11 北京沃东天骏信息技术有限公司 Method and device for cleaning data processing task
CN112783615B (en) * 2019-11-08 2024-03-01 北京沃东天骏信息技术有限公司 Data processing task cleaning method and device
CN110928539A (en) * 2019-11-20 2020-03-27 北京城市网邻信息技术有限公司 Code engineering generation method and device, electronic equipment and readable storage medium
CN111273898A (en) * 2020-02-25 2020-06-12 安徽以萨数据技术有限公司 Web front-end code automatic construction method, system and storage medium
CN111273898B (en) * 2020-02-25 2024-03-19 安徽以萨数据技术有限公司 Automatic construction method, system and storage medium for web front-end code
CN111966350A (en) * 2020-07-20 2020-11-20 深圳市麦谷科技有限公司 Web front-end interface generation method and device
CN112667204A (en) * 2020-12-15 2021-04-16 南方电网数字电网研究院有限公司 Data processing method and device for microservice application and computer equipment
CN112667204B (en) * 2020-12-15 2024-01-23 南方电网数字平台科技(广东)有限公司 Data processing method and device for micro-service application and computer equipment
CN113110832A (en) * 2021-04-08 2021-07-13 北京联创新天科技有限公司 Intelligent efficient code generation method and device and storage medium
CN114693220A (en) * 2022-05-30 2022-07-01 深圳市爱云信息科技有限公司 Algorithm warehouse management method and system based on digital twin DaaS platform

Similar Documents

Publication Publication Date Title
CN110096263A (en) Web front end code automatic generation method and device
US10423403B1 (en) Utilizing a machine learning model to predict metrics for an application development process
CN111026470B (en) System and method for verification and conversion of input data
CN107885499A (en) A kind of interface document generation method and terminal device
CN107870845A (en) Towards the management method and system of micro services framework applications
US9613185B2 (en) Influence filtering in graphical models
US11256484B2 (en) Utilizing natural language understanding and machine learning to generate an application
KR20160058947A (en) Evaluating rules applied to data
US11256712B2 (en) Rapid design, development, and reuse of blockchain environment and smart contracts
US9977655B2 (en) System and method for automatic extraction of software design from requirements
US9418241B2 (en) Unified platform for big data processing
US10977031B2 (en) Method for a software development system
US20120266131A1 (en) Automatic program generation device, method, and computer program
WO2021057252A1 (en) Service processing flow configuration method and apparatus, and service request processing method and apparatus
US10592304B2 (en) Suggesting application programming interfaces based on feature and context analysis
JP2007334627A (en) Service base software design support method, and device therefor
Dit et al. Configuring topic models for software engineering tasks in tracelab
JP6191440B2 (en) Script management program, script management apparatus, and script management method
CN103853554A (en) Software reconstruction position determination method and software reconstruction position identification device
Thakur et al. AnModeler: a tool for generating domain models from textual specifications
CN110852118B (en) Distributed machine translation method and system
US11645110B2 (en) Intelligent generation and organization of user manuals
CN113918345A (en) Capacity calculation method and device for configuration hardware, computer equipment and medium
CN113392220A (en) Knowledge graph generation method and device, computer equipment and storage medium
JP2017151594A (en) Supporting device, supporting method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200304

Address after: 100085 Floor 102-1, Building No. 35, West Second Banner Road, Haidian District, Beijing

Applicant after: Seashell Housing (Beijing) Technology Co., Ltd.

Address before: 300 457 days Unit 5, Room 1, 112, Room 1, Office Building C, Nangang Industrial Zone, Binhai New Area Economic and Technological Development Zone, Tianjin

Applicant before: Shell Technology Co., Ltd.

TA01 Transfer of patent application right
WW01 Invention patent application withdrawn after publication

Application publication date: 20190806

WW01 Invention patent application withdrawn after publication