CN110989986B - Software template-based software generation method and device and computer equipment - Google Patents

Software template-based software generation method and device and computer equipment Download PDF

Info

Publication number
CN110989986B
CN110989986B CN201911211425.6A CN201911211425A CN110989986B CN 110989986 B CN110989986 B CN 110989986B CN 201911211425 A CN201911211425 A CN 201911211425A CN 110989986 B CN110989986 B CN 110989986B
Authority
CN
China
Prior art keywords
template
software
software template
selection command
standard software
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.)
Active
Application number
CN201911211425.6A
Other languages
Chinese (zh)
Other versions
CN110989986A (en
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.)
Zhejiang Dasou Vehicle Software Technology Co Ltd
Original Assignee
Zhejiang Dasou Vehicle Software 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 Zhejiang Dasou Vehicle Software Technology Co Ltd filed Critical Zhejiang Dasou Vehicle Software Technology Co Ltd
Priority to CN201911211425.6A priority Critical patent/CN110989986B/en
Publication of CN110989986A publication Critical patent/CN110989986A/en
Application granted granted Critical
Publication of CN110989986B publication Critical patent/CN110989986B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

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 application relates to a software template-based software generation method, a device and computer equipment. The method comprises the following steps: downloading a standard software template corresponding to the template selection command in response to the template selection command issued by the user; wherein the standard software template comprises a template execution script; executing the template execution script to obtain parameter information of a customizable part in a standard software template; dynamically rendering a software template dynamic part in the software template according to the parameter information of the customizable part; and generating a final software template according to the dynamic part of the software template and the standard software template. The method can provide a software generation method based on the software template with stronger expansibility, further has the capability of searching a remote central service directory, and the scaffold template is contracted in type according to the directory, so that responsibility is refined, management is convenient, and software customization operation is performed on the basis of a standard software template according to the self requirement of a user.

Description

Software template-based software generation method and device and computer equipment
Technical Field
The present application relates to the field of software development technologies, and in particular, to a software generation method, apparatus, and computer device based on a software template.
Background
In the development practice of enterprise software, a scaffold tool or template technology is generally utilized to unify and output standard software development foundation kits (including standard kits of initial code, configuration, engineering structure, engineering dependence and the like).
However, the software templates used by the scaffold tools in the prior art are weak in expansibility, and cannot meet the requirements.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a software template-based software generation method, apparatus, computer device, and storage medium that can have a strong expansibility.
A software template-based software generation method, the method comprising: downloading a standard software template corresponding to the template selection command in response to the template selection command issued by the user; wherein the standard software template comprises a template execution script; executing the template execution script to obtain parameter information of a customizable part in a standard software template; dynamically rendering a software template dynamic part in the software template according to the parameter information of the customizable part; and generating a final software template according to the dynamic part of the software template and the standard software template.
In one embodiment, before downloading the standard software template corresponding to the template selection command in response to the template selection command issued by the user, the method further includes: receiving an analysis plug-in installation command sent by a user and used for analyzing the template selection command; installing the analysis plug-in of the template selection command under the condition that the analysis plug-in installation command comprises a key field of the template selection command; and under the condition that the key field of the template selection command is not included in the analysis plug-in installation command, displaying an analysis plug-in list so that a user installs at least one analysis plug-in according to the analysis plug-in list.
In one embodiment, the downloading, in response to a template selection command issued by a user, a standard software template corresponding to the template selection command includes: in response to a template selection command selected by a user, displaying a standard software template name list so that the user selects at least one standard software template name from the standard software template name list; downloading a standard software template from a central storage service according to the standard software template name; decompressing the standard software template to obtain a template decompressed file, and storing the template decompressed file into a template cache.
In one embodiment, after executing the template execution script to obtain the parameter information of the customizable portion of the standard software template, the method further comprises: storing the parameter information into a template configuration table; correspondingly, the dynamically rendering the software template dynamic part in the software template according to the parameter information of the customizable part comprises the following steps: and dynamically rendering the dynamic part of the software template in the software template according to the template configuration table.
In one embodiment, the template configuration table includes a sub-list of configuration information for the record generator and initiator, the method further comprising: detecting whether the configuration information sub-list is empty; displaying configuration prompt information under the condition that the configuration information sub-list is not empty, so that a user adds a generator and a starter in the configuration information sub-list according to the configuration prompt information; performing enhanced configuration on the standard software template by utilizing a generator and a starter recorded in the configuration information sub-list; and determining the standard software template subjected to the enhanced configuration as a final software template.
In one embodiment, the method further comprises: and generating a final software template according to the dynamic part of the software template and the standard software template under the condition that the configuration information sub-list is not empty.
In one embodiment, the method further comprises: in response to the software template update instruction, the original software template is updated with the software template uploaded by the administrator.
A software template-based software generation apparatus, the apparatus comprising: the downloading module is used for responding to a template selection command sent by a user and downloading a standard software template corresponding to the template selection command; wherein the standard software template comprises a template execution script; the execution module is used for executing the template execution script to acquire parameter information of the customizable part in the standard software template; the rendering module is used for dynamically rendering the dynamic part of the software template in the software template according to the parameter information of the customizable part; and the first generation module is used for generating a final software template according to the software template dynamic part and the standard software template.
In one embodiment, the downloading module includes: the first display module is used for responding to a template selection command selected by a user and displaying a standard software template name list so that the user can select at least one standard software template name from the standard software template name list; a downloading unit, configured to download a standard software template from a central storage service according to the standard software template name; and the decompression unit is used for decompressing the standard software template to obtain a template decompressed file and storing the template decompressed file into a template cache.
In one embodiment, the apparatus further comprises: the storage module is used for storing the parameter information into a template configuration table; correspondingly, the rendering module comprises: and the rendering module unit is used for dynamically rendering the dynamic part of the software template in the software template according to the template configuration table.
In one embodiment, the template configuration table includes a sub-list of configuration information for the record generator and initiator, the apparatus further comprising: the detection module is used for detecting whether the configuration information sub-list is empty; the second display module is used for displaying the configuration prompt information under the condition that the configuration information sub-list is not empty, so that a user adds a generator and a starter in the configuration information sub-list according to the configuration prompt information; the enhancement configuration module is used for enhancing and configuring the standard software template by utilizing the generator and the starter recorded in the configuration information sub-list; and the determining module is used for determining the standard software template subjected to the enhancement configuration as a final software template.
In one embodiment, the apparatus further comprises: and the second generation module is used for generating a final software template according to the software template dynamic part and the standard software template under the condition that the configuration information sub-list is not empty.
In one embodiment, the apparatus further comprises: and the uploading module is used for responding to the software template updating instruction and updating the original software template by using the software template uploaded by the administrator.
In one embodiment, the software templates include basic engineering files, template files, and/or interaction script code.
In one embodiment, the apparatus further comprises: the receiving module is used for receiving an analysis plug-in installation command sent by a user and used for analyzing the template selection command; the first installation module is used for installing the analysis plug-in of the template selection command under the condition that the analysis plug-in installation command comprises the key field of the template selection command; and the second installation module is used for displaying an analysis plug-in list under the condition that the analysis plug-in installation command does not comprise the key field of the template selection command, so that a user installs at least one analysis plug-in according to the analysis plug-in list.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of: downloading a standard software template corresponding to the template selection command in response to the template selection command issued by the user; wherein the standard software template comprises a template execution script; executing the template execution script to obtain parameter information of a customizable part in a standard software template; dynamically rendering a software template dynamic part in the software template according to the parameter information of the customizable part; and generating a final software template according to the dynamic part of the software template and the standard software template.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of: downloading a standard software template corresponding to the template selection command in response to the template selection command issued by the user; wherein the standard software template comprises a template execution script; executing the template execution script to obtain parameter information of a customizable part in a standard software template; dynamically rendering a software template dynamic part in the software template according to the parameter information of the customizable part; and generating a final software template according to the dynamic part of the software template and the standard software template.
The software generating method, the device, the computer equipment and the storage medium based on the software template respond to the template selection command sent by the user and download the standard software template corresponding to the template selection command; wherein the standard software template comprises a template execution script; executing the template execution script to obtain parameter information of a customizable part in a standard software template; dynamically rendering a software template dynamic part in the software template according to the parameter information of the customizable part; according to the dynamic part of the software template and the standard software template, a final software template is generated, so that a software generation method based on the software template with stronger expansibility can be provided, the capability of searching a remote central service directory is further provided, the scaffold template is contracted in type according to the directory, responsibility is refined, management is convenient, and software customization operation is performed on the basis of the standard software template according to the self requirement of a user.
Drawings
FIG. 1 is an application environment diagram of a software template-based software generation method in one embodiment;
FIG. 2 is a flow diagram of a software template-based software generation method in one embodiment;
FIG. 3 is a block diagram of a software template-based software generation device in one embodiment;
Fig. 4 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The software template-based software generation method provided by the application can be applied to an application environment shown in figure 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices, and the server 104 may be implemented by a stand-alone server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a software generating method based on a software template is provided, and the method is applied to the terminal in fig. 1 for illustration, and includes the following steps:
step 202, in response to a template selection command issued by a user, downloading a standard software template corresponding to the template selection command; wherein the standard software template comprises a template execution script.
Wherein the template selection command is used for triggering the starting operation of a software generation method based on a software template; the template selection command may be issued by a user via a client for selecting a software template required for the software generation method.
In this implementation, the server may be a central storage service, which is used to provide a server for uploading, downloading and storing, and may be based on a file stored by a path identifier, generally based on HTTP protocol, and optionally, a Git protocol, an FTP protocol, and the like. This has the advantage that the central storage service can negotiate communication protocols with the clients, including but not limited to HTTP, git, SSH, FTP, etc. The management protocol of the central storage service can adopt the Git protocol, so that the version management of the software template is facilitated. The client communication protocol may employ the HTTP protocol, which is more efficient.
The central storage service pre-stores a plurality of standard software templates for selection by a user. The standard software template is used for outputting a basic template of a software development standard suite, comprises a complete engineering structure, project dependence, basic codes and configuration files, has a complete interaction request script, and can be used in combination with a code generator and a starter.
In this implementation, standard software templates may include multiple types, and specifically may include standard templates (templates), plug-ins (plugins), code generators (generators), and initiators (starters). The standard template can be used for configuring an available generator list in a configuration list, and when the standard template is used for outputting items, generator options are provided for a user to select, related generators can be automatically downloaded and called, and the output content and functions are expanded; the plug-in can be used for installing a locally executable command, acquiring a plug-in list from a central storage service by using a scaffold command line tool, dynamically installing the plug-in on the local, expanding the functions of the scaffold tool, such as commands and the like; the code generator can be understood as a simplified template, only can realize partial functions of the template, can not independently output complete project engineering, and needs to be matched with a standard template for use. The initiator (starters) is another standard template which is simplified, the function is more single than the generator, and engineering dependence or configuration is only added to the existing engineering. In other implementations, the standard template may also configure a list of available initiators in its configuration list, and when an item is output, the relevant initiator may also be automatically downloaded and its interaction code invoked. In this implementation, the scaffold tools, both herein and hereinafter, may be executable command line tools installed on the user's computer. The scaffold command may be a part command which can be built into the scaffold by executing a predetermined script code through the scaffold tool to achieve the relevant purpose.
As an example, scaffold built-in commands may include create, install, generators and starters. Wherein, create: a command executed by default, wherein the function is to output a software standard engineering code based on a standard template; the instrument: the plug-in (plugins) installs the command, can download the install plug-in command from the central store [ plugins ] or update the local command; generators: downloading and executing selected generator templates from a central storage (generator) in the existing software engineering, and generating new codes in the current engineering; starters: in existing software engineering, selected starter templates are downloaded from a central storage [ starters ], and engineering dependencies and engineering configurations supported by a starter are introduced in the current engineering.
In another implementation manner, the central storage service may be preconfigured by a developer, and a specific configuration manner may be uploading a configuration file corresponding to the central storage service to a server, and after the uploading is completed, a directory of the central storage service may be displayed, for example, the directory of the central storage service may be:
When the scaffold tool is installed locally, the central server address is directly configured so that the user can correspond to the position according to the catalogue.
And 204, executing the template execution script to acquire parameter information of the customizable part in the standard software template.
The template execution script can be used for displaying a parameter catalog of the customizable part and an information input command line in the standard software template, and a user can input the parameter information to be customized into the information input command line according to the parameter catalog of the customizable part and transmit the parameter information of the customizable part to the central storage service.
In this implementation, the parameter information of the customizable portion may be used to represent the item type (back-end item or front-end item), and determine an optional template type, item name, item version, application component version, item generation catalog, etc. according to the item type.
And 206, dynamically rendering the dynamic part of the software template in the software template according to the parameter information of the customizable part.
The dynamic rendering may be a process of performing parametric rendering on a written template file by a template engine (such as mustache, etc.), and outputting a corresponding file, in this implementation, after parameter information of a customizable portion in a standard software template is obtained, and a selected template (the template may be a batch of files) is downloaded according to user input parameters, the template engine performs parametric rendering on the template. The data to be rendered in the template file generally contains information such as project names, project versions, application component versions and the like.
In this implementation, the standard software template includes a software template static portion and a software template dynamic portion; the static part of the software template is directly used in the software which needs to be generated again, and the dynamic part of the software template needs the parameter information of the customizable part and the dynamic part generation logic in the standard software template to be determined.
In this implementation manner, the dynamic part of the software template may be a part of expansibility of a standard software template, and may be combined with the static part of the software template to implement flexible collocation, so as to form multifunctional and diversified software.
And step 208, generating a final software template according to the dynamic part of the software template and the standard software template.
In the process of generating the final software template, the client can generate the engineering code corresponding to the final software template by calling the built-in script and executing related logic, and the engineering code can obtain the final software template through compiling.
In the implementation mode, a standard software template corresponding to a template selection command is downloaded by responding to the template selection command sent by a user; wherein the standard software template comprises a template execution script; executing the template execution script to obtain parameter information of a customizable part in a standard software template; dynamically rendering a software template dynamic part in the software template according to the parameter information of the customizable part; according to the dynamic part of the software template and the standard software template, a final software template is generated, so that a software generation method based on the software template with stronger expansibility can be provided, the capability of searching a remote central service directory is further provided, the scaffold template is contracted in type according to the directory, responsibility is refined, management is convenient, and software customization operation is performed on the basis of the standard software template according to the self requirement of a user.
In one embodiment, the downloading, in response to a template selection command issued by a user, a standard software template corresponding to the template selection command includes: in response to a template selection command selected by a user, displaying a standard software template name list so that the user selects at least one standard software template name from the standard software template name list; downloading a standard software template from a central storage service according to the standard software template name; decompressing the standard software template to obtain a template decompressed file, and storing the template decompressed file into a template cache.
The standard software template name list includes all the standard software templates pre-stored in the central storage service, and in this implementation manner, the standard software templates may be stored in the central storage service in the form of compressed files, which has the advantage of saving storage space and reducing data transmission amount in the transmission process.
The template decompression file may be a file obtained after a decompression operation is performed on a standard software template, and the template decompression file may be stored in a template cache, where the template cache may be a storage space used by a client to store the template decompression file.
In one embodiment, after executing the template execution script to obtain the parameter information of the customizable portion of the standard software template, the method further comprises: storing the parameter information into a template configuration table; correspondingly, the dynamically rendering the software template dynamic part in the software template according to the parameter information of the customizable part comprises the following steps: and dynamically rendering the dynamic part of the software template in the software template according to the template configuration table.
The template configuration table is used for recording parameter information of the customizable part input by a user. In the process of dynamic rendering, the customizable part in the dynamic part of the software template can be determined by directly reading the template configuration table.
In one embodiment, the template configuration table includes a sub-list of configuration information for the record generator and initiator, the method further comprising: detecting whether the configuration information sub-list is empty; displaying configuration prompt information under the condition that the configuration information sub-list is not empty, so that a user adds a generator and a starter in the configuration information sub-list according to the configuration prompt information; performing enhanced configuration on the standard software template by utilizing a generator and a starter recorded in the configuration information sub-list; and determining the standard software template subjected to the enhanced configuration as a final software template.
The template configuration table may include a plurality of sub-lists of configuration information for recording different types of configuration information, for example, configuration information of the generator and the initiator may be recorded through one sub-list of configuration information.
In this implementation manner, the software generating method may include an enhanced configuration process, which is used for a user to perform a secondary configuration process. In the enhanced configuration process, the initiator can perform engineering configuration according to the configuration information of the initiator, and the generator generates codes according to the configuration information of the generator.
The configuration prompt information is used for prompting a user to input corresponding configuration information so as to carry out enhanced configuration.
In one embodiment, the method further comprises: and determining the enhanced configuration sequence of the standard software templates according to the addition sequence of the generator and the initiator added by the user in the configuration information sub-list.
In this implementation manner, the configuration information sub-list may be used to configure a plurality of generators and a plurality of initiators, and may perform batch enhancement configuration according to the configuration information sub-list, where in the batch enhancement configuration process, the configuration order may be determined according to the addition order of the generators and the initiators added by the user in the configuration information sub-list.
In one embodiment, the method further comprises: and generating a final software template according to the dynamic part of the software template and the standard software template under the condition that the configuration information sub-list is not empty.
In one embodiment, the method further comprises: in response to the software template update instruction, the original software template is updated with the software template uploaded by the administrator.
The implementation mode is used for updating the original software template in the central storage service, and the updating mode can be new addition and replacement.
In one embodiment, the software templates include basic engineering files, template files, and/or interaction script code.
The basic engineering file can be understood as a static file, and is directly copied without modification when being output to the engineering catalog; template files are required to be dynamically configured and corresponding engineering files are generated according to user selection; interaction script code for requesting configuration information required for the template, needs to be executed by the scaffold tool.
In one embodiment, before downloading the standard software template corresponding to the template selection command in response to the template selection command issued by the user, the method further includes: receiving an analysis plug-in installation command sent by a user and used for analyzing the template selection command; installing the analysis plug-in of the template selection command under the condition that the analysis plug-in installation command comprises a key field of the template selection command; and under the condition that the key field of the template selection command is not included in the analysis plug-in installation command, displaying an analysis plug-in list so that a user installs at least one analysis plug-in according to the analysis plug-in list.
The parsing plug-in is used for parsing the template selection command, the parsing plug-in installation command is used for installing the parsing plug-in, and in the implementation manner, a user can select to install a plurality of parsing plug-ins so as to parse a plurality of template selection commands. In the process of installing the parsing plug-ins, the user can complete in at least two ways, for example, the user can complete in at least two ways by inputting a parsing plug-in installation command including a field corresponding to the parsing plug-ins, and for example, the user can trigger to display a parsing plug-in list by inputting a parsing plug-in installation command not including any field of the parsing plug-ins, so that the user installs at least one parsing plug-in according to the parsing plug-in list.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
In one embodiment, a preferred implementation of a software template-based software generation method is provided, specifically including:
the whole working flow comprises the following steps:
1. a central storage service is prepared and the relevant software templates are uploaded through an uploading service.
2. The scaffold tool is installed locally and a central service address is configured.
3. The optional plug-in command is installed, and the plug-ins to be installed are specified by inputting the similar [ CLI INSTALL ] or [ CLI INSTALL notify ] in the command line window, and when the plug-ins are not specified, the selectable plug-ins are selected by a list form for a user. After the plug-in is installed, the configuration file of the scaffold tool command is updated. The configuration file is read when the scaffold tool is operated next time, and an available command list is obtained.
4. Generating software development standard engineering.
A. Command line execution [ CLI CREATE ] selects the standard software template to be used.
B. The create command downloads the corresponding template from the central storage service [/templates ] as selected and decompresses into the local template cache library.
C. the create command finds the script entry for the template from the local template cache and executes its script.
D. the script of the software template inquires the user about necessary parameter information according to the configuration of the script and stores the parameter information as a temporary configuration table.
E. And the software template output module is used for selecting static files to be copied according to the temporary configuration table and copying the static files to an output directory. And a file needing dynamic configuration, acquiring parameter information from the temporary configuration table, rendering based on a dynamic template, and outputting to a directory.
F. the script checks the generator and initiator list in the current template configuration table, if it is empty, then the process ends. If not, the user is queried for the generator and initiator to be used in list form and default options are provided.
G. the script downloads and decompresses the corresponding templates from the central storage [ generator ] and [ starters ] to the local repository according to the user selected generator and initiator.
H. The script continues to call the built-in script in sequence according to the sequence configured by the generator and the starter, and executes the related logic to generate engineering codes or configuration.
In one embodiment, as shown in fig. 3, there is provided a software template-based software generating apparatus, including: a download module 310, an execution module 320, a rendering module 330, and a first generation module 340, wherein:
A downloading module 310, configured to respond to a template selection command issued by a user, and download a standard software template corresponding to the template selection command; wherein the standard software template comprises a template execution script;
an execution module 320, configured to execute the template execution script to obtain parameter information of the customizable portion in the standard software template;
A rendering module 330, configured to dynamically render a dynamic part of a software template in the software template according to the parameter information of the customizable part;
The first generating module 340 is configured to generate a final software template according to the dynamic part of the software template and the standard software template.
In one embodiment, the downloading module includes: the first display module is used for responding to a template selection command selected by a user and displaying a standard software template name list so that the user can select at least one standard software template name from the standard software template name list; a downloading unit, configured to download a standard software template from a central storage service according to the standard software template name; and the decompression unit is used for decompressing the standard software template to obtain a template decompressed file and storing the template decompressed file into a template cache.
In one embodiment, the apparatus further comprises: the storage module is used for storing the parameter information into a template configuration table; correspondingly, the rendering module comprises: and the rendering module unit is used for dynamically rendering the dynamic part of the software template in the software template according to the template configuration table.
In one embodiment, the template configuration table includes a sub-list of configuration information for the record generator and initiator, the apparatus further comprising: the detection module is used for detecting whether the configuration information sub-list is empty; the second display module is used for displaying the configuration prompt information under the condition that the configuration information sub-list is not empty, so that a user adds a generator and a starter in the configuration information sub-list according to the configuration prompt information; the enhancement configuration module is used for enhancing and configuring the standard software template by utilizing the generator and the starter recorded in the configuration information sub-list; and the determining module is used for determining the standard software template subjected to the enhancement configuration as a final software template.
In one embodiment, the apparatus further comprises: and the second generation module is used for generating a final software template according to the software template dynamic part and the standard software template under the condition that the configuration information sub-list is not empty.
In one embodiment, the apparatus further comprises: and the uploading module is used for responding to the software template updating instruction and updating the original software template by using the software template uploaded by the administrator.
In one embodiment, the software templates include basic engineering files, template files, and/or interaction script code.
In one embodiment, the apparatus further comprises: the receiving module is used for receiving an analysis plug-in installation command sent by a user and used for analyzing the template selection command; the first installation module is used for installing the analysis plug-in of the template selection command under the condition that the analysis plug-in installation command comprises the key field of the template selection command; and the second installation module is used for displaying an analysis plug-in list under the condition that the analysis plug-in installation command does not comprise the key field of the template selection command, so that a user installs at least one analysis plug-in according to the analysis plug-in list.
For specific limitations on the software template-based software generation means, reference may be made to the above limitations on the software template-based software generation method, and no further description is given here. The respective modules in the software template-based software generation apparatus described above may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
It will be appreciated by those skilled in the art that the structure shown in FIG. 3 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a software template-based software generation method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by persons skilled in the art that the architecture shown in fig. 4 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements are applicable, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
Downloading a standard software template corresponding to the template selection command in response to the template selection command issued by the user; wherein the standard software template comprises a template execution script; executing the template execution script to obtain parameter information of a customizable part in a standard software template; dynamically rendering a software template dynamic part in the software template according to the parameter information of the customizable part; and generating a final software template according to the dynamic part of the software template and the standard software template.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: the downloading of the standard software template corresponding to the template selection command in response to the template selection command issued by the user comprises the following steps: in response to a template selection command selected by a user, displaying a standard software template name list so that the user selects at least one standard software template name from the standard software template name list; downloading a standard software template from a central storage service according to the standard software template name; decompressing the standard software template to obtain a template decompressed file, and storing the template decompressed file into a template cache.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: after executing the template execution script to obtain parameter information of the customizable portion of the standard software template, the method further comprises: storing the parameter information into a template configuration table; correspondingly, the dynamically rendering the software template dynamic part in the software template according to the parameter information of the customizable part comprises the following steps: and dynamically rendering the dynamic part of the software template in the software template according to the template configuration table.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: the template configuration table includes a sub-list of configuration information for the record generator and initiator, the method further comprising: detecting whether the configuration information sub-list is empty; displaying configuration prompt information under the condition that the configuration information sub-list is not empty, so that a user adds a generator and a starter in the configuration information sub-list according to the configuration prompt information; performing enhanced configuration on the standard software template by utilizing a generator and a starter recorded in the configuration information sub-list; and determining the standard software template subjected to the enhanced configuration as a final software template.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: the method further comprises the steps of: and generating a final software template according to the dynamic part of the software template and the standard software template under the condition that the configuration information sub-list is not empty.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: the method further comprises the steps of: in response to the software template update instruction, the original software template is updated with the software template uploaded by the administrator.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: the software templates include basic engineering files, template files, and/or interaction script code.
There is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
Before downloading the standard software template corresponding to the template selection command in response to the template selection command issued by the user, the method further comprises: receiving an analysis plug-in installation command sent by a user and used for analyzing the template selection command; installing the analysis plug-in of the template selection command under the condition that the analysis plug-in installation command comprises a key field of the template selection command; and under the condition that the key field of the template selection command is not included in the analysis plug-in installation command, displaying an analysis plug-in list so that a user installs at least one analysis plug-in according to the analysis plug-in list.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (8)

1. A software template-based software generation method, the method comprising:
Downloading a standard software template corresponding to the template selection command in response to the template selection command issued by the user; wherein the standard software template comprises a template execution script;
the downloading of the standard software template corresponding to the template selection command in response to the template selection command issued by the user comprises the following steps: in response to a template selection command selected by a user, displaying a standard software template name list so that the user selects at least one standard software template name from the standard software template name list; downloading a standard software template from a central storage service according to the standard software template name; decompressing the standard software template to obtain a template decompressed file, and storing the template decompressed file into a template cache;
executing the template execution script to obtain parameter information of a customizable part in a standard software template;
Before downloading the standard software template corresponding to the template selection command in response to the template selection command sent by the user, the method further comprises the following steps: receiving an analysis plug-in installation command sent by a user and used for analyzing the template selection command; if the analysis plug-in installation command comprises the key field of the template selection command, installing the analysis plug-in of the template selection command; if the analysis plug-in installation command does not comprise the key field of the template selection command, displaying an analysis plug-in list so that a user installs at least one analysis plug-in according to the analysis plug-in list;
Dynamically rendering a software template dynamic part in the software template according to the parameter information of the customizable part;
And generating a final software template according to the dynamic part of the software template and the standard software template.
2. The method of claim 1, wherein after executing the template execution script to obtain parameter information for the customizable portion of the standard software template, the method further comprises:
storing the parameter information into a template configuration table;
the dynamically rendering the software template dynamic part in the software template according to the parameter information of the customizable part comprises the following steps:
And dynamically rendering the dynamic part of the software template in the software template according to the template configuration table.
3. The method of claim 2, wherein the template configuration table includes a sub-list of configuration information for record generators and initiators, the method further comprising:
detecting whether the configuration information sub-list is empty;
Displaying configuration prompt information under the condition that the configuration information sub-list is not empty, so that a user adds a generator and a starter in the configuration information sub-list according to the configuration prompt information;
Performing enhanced configuration on the standard software template by utilizing a generator and a starter recorded in the configuration information sub-list;
and determining the standard software template subjected to the enhanced configuration as a final software template.
4. A method according to claim 3, characterized in that the method further comprises:
And generating a final software template according to the dynamic part of the software template and the standard software template under the condition that the configuration information sub-list is not empty.
5. The method according to claim 1, wherein the method further comprises:
in response to the software template update instruction, the original software template is updated with the software template uploaded by the administrator.
6. A software template-based software generation apparatus, the apparatus comprising:
The downloading module is used for responding to a template selection command sent by a user and downloading a standard software template corresponding to the template selection command; wherein the standard software template comprises a template execution script;
the downloading of the standard software template corresponding to the template selection command in response to the template selection command issued by the user comprises the following steps: in response to a template selection command selected by a user, displaying a standard software template name list so that the user selects at least one standard software template name from the standard software template name list; downloading a standard software template from a central storage service according to the standard software template name; decompressing the standard software template to obtain a template decompressed file, and storing the template decompressed file into a template cache;
The execution module is used for executing the template execution script to acquire parameter information of the customizable part in the standard software template;
Before downloading the standard software template corresponding to the template selection command in response to the template selection command sent by the user, the method further comprises the following steps: receiving an analysis plug-in installation command sent by a user and used for analyzing the template selection command; if the analysis plug-in installation command comprises the key field of the template selection command, installing the analysis plug-in of the template selection command; if the analysis plug-in installation command does not comprise the key field of the template selection command, displaying an analysis plug-in list so that a user installs at least one analysis plug-in according to the analysis plug-in list;
The rendering module is used for dynamically rendering the dynamic part of the software template in the software template according to the parameter information of the customizable part;
And the first generation module is used for generating a final software template according to the software template dynamic part and the standard software template.
7. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 5 when the computer program is executed.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 5.
CN201911211425.6A 2019-12-02 2019-12-02 Software template-based software generation method and device and computer equipment Active CN110989986B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911211425.6A CN110989986B (en) 2019-12-02 2019-12-02 Software template-based software generation method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911211425.6A CN110989986B (en) 2019-12-02 2019-12-02 Software template-based software generation method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN110989986A CN110989986A (en) 2020-04-10
CN110989986B true CN110989986B (en) 2024-05-14

Family

ID=70089160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911211425.6A Active CN110989986B (en) 2019-12-02 2019-12-02 Software template-based software generation method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN110989986B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111596965B (en) * 2020-07-22 2020-11-03 太平金融科技服务(上海)有限公司 Project engineering initialization method, device, computer equipment and storage medium
CN113590134A (en) * 2021-08-16 2021-11-02 北京字节跳动网络技术有限公司 Project generation method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109725897A (en) * 2018-12-03 2019-05-07 深圳市多元世纪信息技术股份有限公司 Software customized methods, devices and systems, terminal
CN109814854A (en) * 2019-01-24 2019-05-28 平安科技(深圳)有限公司 Project skeleton generating method, device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050251786A1 (en) * 2004-05-07 2005-11-10 International Business Machines Corporation System and method for dynamic software installation instructions

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109725897A (en) * 2018-12-03 2019-05-07 深圳市多元世纪信息技术股份有限公司 Software customized methods, devices and systems, terminal
CN109814854A (en) * 2019-01-24 2019-05-28 平安科技(深圳)有限公司 Project skeleton generating method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110989986A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
CN109814854B (en) Project framework generation method, device, computer equipment and storage medium
JP5171790B2 (en) Information processing apparatus, communication system, and program
CN112765023B (en) Test case generation method and device
CN111563220A (en) Business website project construction method and device, computer equipment and storage medium
CN110399159A (en) Dispositions method, device, computer equipment and the storage medium of operating system
CN110989986B (en) Software template-based software generation method and device and computer equipment
CN107239309B (en) Patch generation method and device, updating method, electronic device and storage medium
CN111142884A (en) Applet version deployment method and device, electronic equipment and storage medium
US20110214076A1 (en) Method and apparatus for optimizing generation of user interface
CN111949262A (en) Front-end project construction method and device, computer equipment and storage medium
KR20040079166A (en) Smart-card and the management method for optional applet
CN110597552A (en) Configuration method, device and equipment of project continuous integration pipeline and storage medium
JP6002302B2 (en) Web application generation system, Web application generation system control method, Web application generation system program, Web application generation device, Web application generation device control method, and Web application generation device program
CN105786568A (en) Upgrade content display method and device and intelligent terminal
CN112068820A (en) Configuration processing method and device of microservice, computer equipment and storage medium
CN109766084B (en) Customized development method and device for payment application, computer equipment and storage medium
CN113535182B (en) Project engineering construction method and device, computer equipment and storage medium
US10798181B2 (en) Storage medium containing a program, information processing device, and processing method for deploying an application generated to a cloud environment
JP6099365B2 (en) Information processing system, information processing apparatus, information processing program, application execution method, and storage medium
KR101376322B1 (en) Method for controlling installation of application of mobile terminal, mobile terminal using thereof, and server for providing application
CN112162743A (en) Driver generation method, device, computer equipment and storage medium
US7702890B2 (en) Information processing apparatus and program
CN113722538B (en) Interface dynamic rendering method and device
CN104539697A (en) Client end, server and method for making Android mobile application
CN113010199B (en) Application updating method and device, computer equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant