CN109814854B - Project framework generation method, device, computer equipment and storage medium - Google Patents

Project framework generation method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109814854B
CN109814854B CN201910082991.5A CN201910082991A CN109814854B CN 109814854 B CN109814854 B CN 109814854B CN 201910082991 A CN201910082991 A CN 201910082991A CN 109814854 B CN109814854 B CN 109814854B
Authority
CN
China
Prior art keywords
template
project
command line
frame
information
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
CN201910082991.5A
Other languages
Chinese (zh)
Other versions
CN109814854A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910082991.5A priority Critical patent/CN109814854B/en
Publication of CN109814854A publication Critical patent/CN109814854A/en
Application granted granted Critical
Publication of CN109814854B publication Critical patent/CN109814854B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application relates to research and development management, and provides a project framework generation method, a project framework generation device, computer equipment and a storage medium. The method comprises the following steps: receiving an execution instruction of a template downloading command line, analyzing the template downloading command line according to the execution instruction, and obtaining project frame template information according to an analysis result, wherein the project frame template information comprises a template identifier and a storage server address corresponding to the template identifier; sending a project framework template downloading request to a server corresponding to the storage server address, wherein the project framework template downloading request carries a template identifier; and the receiving server identifies the project frame template as a project frame according to the project frame template found by the template identification and stores the project frame template into a preset local storage address. By adopting the method, the development efficiency can be improved.

Description

Project framework generation method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for generating a project frame, a computer device, and a storage medium.
Background
In the present day of the rapid development of the internet, when a developer performs front-end development, the developer needs to build a project frame before developing front-end specific content, and currently, the developer manually builds the project frame or copies the original project frame to build a new project frame. Manually deleting unwanted modules under the new project framework or adding necessary modules by copying the original project framework is also typically required by the developer. Therefore, the project framework is low in construction efficiency, and the project development efficiency of developers is reduced.
Disclosure of Invention
In view of the above, it is desirable to provide a project framework generating method, apparatus, computer device, and storage medium capable of improving project development efficiency.
A method of project framework generation, the method comprising:
Receiving an execution instruction of a template downloading command line, analyzing the template downloading command line according to the execution instruction, and obtaining project frame template information according to an analysis result, wherein the project frame template information comprises a template identifier and a storage server address corresponding to the template identifier;
sending a project framework template downloading request to a server corresponding to the storage server address, wherein the project framework template downloading request carries a template identifier;
And the receiving server identifies the project frame template as a project frame according to the project frame template found by the template identification and stores the project frame template into a preset local storage address.
In one embodiment, before receiving an execution instruction of the template downloading command line, analyzing the template downloading command line according to the execution instruction, and obtaining project frame template information according to an analysis result, the project frame template information includes a template identifier and a storage server address corresponding to the template identifier, and further includes:
receiving an execution instruction of a template information acquisition command line, analyzing the template information acquisition command line according to the execution instruction of the template information acquisition command line, obtaining a plurality of item frame template information according to an analysis result, and displaying the plurality of item frame template information, wherein the item frame template information is used for indicating a user to select a corresponding template downloading command line.
In one embodiment, after receiving an execution instruction of a template information acquisition command line, analyzing the template information acquisition command line according to the execution instruction of the template information acquisition command line, obtaining a plurality of item frame template information according to an analysis result, and displaying the plurality of item frame template information, wherein before the item frame template information is used for indicating a user to select a corresponding template downloading command line, the method further comprises:
Receiving a downloading instruction of the command line interactive tool, and acquiring a command line interactive tool installation package according to the downloading instruction;
Receiving an installation instruction of the command line interactive tool installation package, analyzing the command line interactive tool installation package according to the installation instruction, and installing the command line interactive tool according to an analysis result;
and receiving an operation instruction of the command line interaction tool, operating the command line interaction tool according to the operation instruction, obtaining a command line interaction interface, and receiving a command line through the command line interaction interface.
In one embodiment, before receiving an execution instruction of the template downloading command line, analyzing the template downloading command line according to the execution instruction, and obtaining project frame template information according to an analysis result, the project frame template information includes a template identifier and a storage server address corresponding to the template identifier, and further includes:
Acquiring project frame information of each project, and establishing a corresponding project frame template according to the project frame information;
Generating a template identifier corresponding to the project frame template, acquiring a preset storage server address, and storing the template identifier and the project frame template in a server corresponding to the preset storage server address in an associated mode.
In one embodiment, after generating the template identifier corresponding to the project frame template, acquiring a preset storage server address, and storing the template identifier and the project frame template in association with the storage server address to a server corresponding to the storage server address, the method further includes:
Receiving an update instruction of a project framework template, wherein the update instruction carries a template identifier and a corresponding storage server address, and sending an update request to a corresponding server according to the storage server address;
the receiving server searches the project frame template according to the template identification, acquires modification information of the project frame template, and acquires the modified project frame template;
And generating a version identifier of the modified project framework template, and storing the modified project framework template, the template identifier and the version identifier in a server in an associated mode.
In one embodiment, after the receiving server identifies the project frame template as a project frame according to the project frame template found by the template identifier and stores the project frame template in the preset local storage address, the method further includes:
Receiving an item frame initialization command line execution instruction, analyzing the item frame initialization command line according to the item frame initialization command line execution instruction, and initializing the item frame according to an analysis result to obtain a target item;
And receiving a target project operation command line execution instruction, analyzing the target project operation command line according to the target project operation command line execution instruction, operating the target project according to the target project operation command line, and generating a target project initialization page.
An item frame generation apparatus, the apparatus comprising:
The information obtaining module is used for receiving an execution instruction of the template downloading command line, analyzing the template downloading command line according to the execution instruction, and obtaining project frame template information according to an analysis result, wherein the project frame template information comprises a template identifier and a storage server address corresponding to the template identifier;
The downloading module is used for sending a project framework template downloading request to a server corresponding to the storage server address, wherein the project framework template downloading request carries a template identifier;
The storage module is used for receiving the project frame template searched by the server according to the template identification, identifying the project frame template as a project frame and storing the project frame template into a preset local storage address.
In one embodiment, the apparatus further comprises:
The information display module is used for receiving an execution instruction of the template information acquisition command line, analyzing the template information acquisition command line according to the execution instruction of the template information acquisition command line, obtaining a plurality of item frame template information according to an analysis result, and displaying the plurality of item frame template information, wherein the item frame template information is used for indicating a user to select a corresponding template downloading command line.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
Receiving an execution instruction of a template downloading command line, analyzing the template downloading command line according to the execution instruction, and obtaining project frame template information according to an analysis result, wherein the project frame template information comprises a template identifier and a storage server address corresponding to the template identifier;
sending a project framework template downloading request to a server corresponding to the storage server address, wherein the project framework template downloading request carries a template identifier;
And the receiving server identifies the project frame template as a project frame according to the project frame template found by the template identification and stores the project frame template into a preset local storage address.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
Receiving an execution instruction of a template downloading command line, analyzing the template downloading command line according to the execution instruction, and obtaining project frame template information according to an analysis result, wherein the project frame template information comprises a template identifier and a storage server address corresponding to the template identifier;
Sending a project frame template downloading request to a server corresponding to the storage server address, wherein the project frame template downloading request carries a project frame template identifier;
and the receiving server identifies the project frame template as a project frame according to the project frame template identification and stores the project frame template into a preset local storage address.
According to the method, the device, the computer equipment and the storage medium for generating the project framework, the execution instruction of the template downloading command line is received, the template downloading command line is analyzed according to the execution instruction, project framework template information is obtained according to the analysis result, and the project framework template information comprises a template identifier and a storage server address corresponding to the template identifier; sending a project framework template downloading request to a server corresponding to the storage server address, wherein the project framework template downloading request carries a template identifier; and the receiving server identifies the project frame template as a project frame according to the project frame template found by the template identification and stores the project frame template into a preset local storage address. The project framework is obtained by acquiring the project framework template of the server in advance, so that the preliminary preparation work of the developer in the development stage is reduced, and the development efficiency of the developer is improved.
Drawings
FIG. 1 is an application scenario diagram of a project framework generation method in one embodiment;
FIG. 2 is a flow diagram of a method of generating a project framework in one embodiment;
FIG. 3 is a flow diagram of a command line interface in one embodiment;
FIG. 4 is a flow diagram of creating project framework templates in one embodiment;
FIG. 5 is a schematic diagram of an item frame template in one embodiment;
FIG. 6 is a flow diagram of updating project framework templates in one embodiment;
FIG. 7 is a flow diagram of generating an item initialization page in one embodiment;
FIG. 8 is a block diagram of an item frame generation device in one embodiment;
fig. 9 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 project framework generating 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 receives an execution instruction of a template downloading command line, analyzes the template downloading command line according to the execution instruction, and obtains project frame template information according to an analysis result, wherein the project frame template information comprises a template identifier and a storage server address corresponding to the template identifier; sending a project frame template downloading request to a server 104 corresponding to the storage server address, wherein the project frame template downloading request carries a template identifier; the receiving server 104 identifies the project frame template as a project frame according to the project frame template found by the template identification and stores the project frame template in a preset local storage address. 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, there is provided an item frame generating method, which is described by taking a terminal in fig. 1 as an example, including the following steps:
S202, receiving an execution instruction of a template downloading command line, analyzing the template downloading command line according to the execution instruction, and obtaining project frame template information according to an analysis result, wherein the project frame template information comprises a template identifier and a storage server address corresponding to the template identifier.
The template downloading command line refers to a command prompt for acquiring project framework template information. The template identification is used to uniquely identify the project framework template. Project framework templates refer to a set of configured development environments that are initialized based on project complexity.
Specifically, the terminal receives an execution instruction of a template downloading command line through the command line interaction tool, analyzes the template downloading command line according to the execution instruction of the template downloading command line, and obtains project framework template information according to an analysis result. The project framework template information comprises a template identifier, a storage server address corresponding to the template identifier and the like. The command line interaction tool is pre-installed in the terminal and can interact through a command line interface.
S204, sending a project frame template downloading request to a server corresponding to the storage server address, wherein the project frame template downloading request carries a template identifier.
Specifically, the terminal sends a project frame template downloading request to a server corresponding to a storage server address, the request carries a template identifier, when the server receives the project frame template downloading request, the server analyzes the request to obtain the template identifier, then searches a preset project frame template database for the template identifier, when the project frame template corresponding to the template identifier can be found, acquires the project frame template corresponding to the template identifier, and then returns the acquired project frame template to the terminal.
S206, the receiving server identifies the project frame template as a project frame according to the project frame template identification and stores the project frame template in a preset local storage address.
The preset local storage address refers to a preset storage path of the project framework in the terminal.
Specifically, the terminal receives a project frame template which is returned by the server and is searched according to the template identification of the project frame, and the obtained project frame template is identified as the project frame. And then, the project frame template is stored in a preset local storage address, namely, the terminal generates a folder named as a template identifier under a local storage path, and the obtained project frame template is stored under the folder.
In the method for generating the project frame, the execution instruction of the template downloading command line is received, the template downloading command line is analyzed according to the execution instruction, project frame template information is obtained according to the analysis result, and the project frame template information comprises a template identifier and a storage server address corresponding to the template identifier; sending a project framework template downloading request to a server corresponding to the storage server address, wherein the project framework template downloading request carries a template identifier; and the receiving server identifies the project frame template as a project frame according to the project frame template found by the template identification and stores the project frame template into a preset local storage address. The project framework is obtained by acquiring the project framework template of the server in advance, so that the preliminary preparation work of the developer in the development stage is reduced, and the development efficiency of the developer is improved.
In one embodiment, before step S202, that is, before receiving the execution instruction of the template downloading command line, the template downloading command line is parsed according to the execution instruction, and project frame template information is obtained according to the parsing result, where the project frame template information includes a template identifier and a storage server address corresponding to the template identifier, the method further includes the steps of:
receiving an execution instruction of a template information acquisition command line, analyzing the template information acquisition command line according to the execution instruction of the template information acquisition command line, obtaining a plurality of item frame template information according to an analysis result, and displaying the plurality of item frame template information, wherein the item frame template information is used for indicating a user to select a corresponding template downloading command line.
Wherein the received template information acquisition command line is a command line for acquiring project framework module information.
Specifically, the terminal receives a template information acquisition command line through a command line interaction tool, analyzes the template information according to a command line execution instruction for acquiring the command line, obtains a plurality of item frame template information according to analysis results, and displays the item frame template information in a command line interaction interface, wherein the item frame template information is used for indicating a user to select a corresponding template downloading command line. Namely, the user can select a required project frame template according to the project frame template information to obtain a project frame downloading command line corresponding to the project frame template, for example, a plurality of project frame template information are obtained through a 'idoll init' command line, which comprises the following steps: template identifications "REACT WITH dbox UI" and "REACT NATIVE without Dbox UI" and the like and corresponding storage server addresses. The developer or the user can select the required project framework to send a downloading request to the server, so that the developer can conveniently select the required project framework to download.
In one embodiment, as shown in fig. 3, before receiving an execution instruction of a template information acquisition command line, analyzing the template information acquisition command line according to the execution instruction of the template information acquisition command line, obtaining a plurality of item frame template information according to an analysis result, and displaying the plurality of item frame template information, the step of further includes, before the item frame template information is used for indicating a user to select a corresponding template download command line:
S302, receiving a downloading instruction of the command line interactive tool, and acquiring a command line interactive tool installation package according to the downloading instruction.
Wherein the command line interactive tool is a tool for project construction, which is developed based on compact (for constructing a user interface).
Specifically, the terminal receives a downloading instruction of the command line interactive tool, and obtains a command line interactive tool installation package from the server according to the downloading instruction.
S304, receiving an installation instruction of the command line interactive tool installation package, analyzing the command line interactive tool installation package according to the installation instruction, and installing the command line interactive tool according to an analysis result.
S306, receiving an operation instruction of the command line interaction tool, operating the command line interaction tool according to the operation instruction, obtaining a command line interaction interface, and receiving a command line through the command line interaction interface.
Specifically, the terminal receives an installation instruction of the downloaded command line interactive tool installation package, analyzes the command line interactive tool installation package according to the installation instruction, installs the command line interactive tool according to the analysis result, and when the command line interactive tool is installed, a developer can use the command line interactive tool. At this time, the terminal receives the operation instruction of the command line interaction tool, and operates the command line interaction tool according to the operation instruction, so as to obtain a command line interaction interface, and the terminal receives a command line input by a developer through the command line interaction interface.
In the above embodiment, the command line interactive tool installation package is obtained according to the download instruction by receiving the download instruction of the command line interactive tool. And receiving an installation instruction of the command line interactive tool installation package, analyzing the command line interactive tool installation package according to the installation instruction, and installing the command line interactive tool according to an analysis result. And receiving an operation instruction of the command line interaction tool, operating the command line interaction tool according to the operation instruction, obtaining a command line interaction interface, and receiving a command line through the command line interaction interface. Through pre-installing the command line interactive tool, the command line interactive tool can be directly used when front-end development is carried out, and development efficiency is improved.
In one embodiment, as shown in fig. 4, before step S202, that is, before receiving an execution instruction of the template downloading command line, analyzing the template downloading command line according to the execution instruction, and obtaining project frame template information according to the analysis result, where the project frame template information includes a template identifier and a storage server address corresponding to the template identifier, the method further includes the steps of:
s402, acquiring project frame information of each project, and establishing a corresponding project frame template according to the project frame information.
The project framework information refers to specific information of a front-end project development environment. Comprising the following steps: project structure information, code specification information, environment configuration information, component information, project resource information, and the like.
Specifically, the terminal acquires the project frame information of each project, and establishes a corresponding project frame template according to the project frame information of each project. For example, an item framework template may be created as shown in FIG. 5.
S404, generating a template identifier corresponding to the project frame template, acquiring a preset storage server address, and storing the template identifier and the project frame template in a server corresponding to the preset storage server address in an associated mode.
Specifically, the terminal generates a template identifier corresponding to the project frame template, acquires a preset storage server address, and then stores the template identifier of each project and the corresponding project frame template in a server corresponding to the preset storage server address in an associated mode.
In the above embodiment, by acquiring the project frame information of each project, building a corresponding project frame template according to the project frame information, generating a template identifier corresponding to the project frame template, acquiring a preset storage server address, and storing the template identifier and the project frame template in a server corresponding to the preset storage server address in an associated manner. The project framework template is built through the project framework information of the existing project, so that the method is convenient and quick, and the efficiency of obtaining the project framework template is improved.
In one embodiment, as shown in fig. 6, after step S404, that is, after generating the template identifier corresponding to the project frame template, obtaining the preset storage server address, and storing the template identifier and the project frame template association in the server corresponding to the storage server address, the method further includes the steps of:
S602, receiving an update instruction of the project framework template, wherein the update instruction carries a template identifier and a corresponding storage server address, and sending an update request to the corresponding server according to the storage server address.
Specifically, when a developer wants to update a project framework template, the terminal receives an update instruction of the project framework template, wherein the update instruction includes a template identifier of the project framework template to be updated and a storage server address stored by the project framework template to be updated, and the template identifier can be a template name, a template ID or the like. The storage server address is the IP (Internet Protocol, protocol for interconnection between networks) address of the server. At this time, the terminal sends an update request to the corresponding server according to the address of the storage server, the update request includes a template identifier, the server receives the update request, analyzes the update request to obtain the template identifier, and searches the project framework template corresponding to the template identifier.
S604, the receiving server obtains modification information of the project frame template according to the project frame template searched by the template identification, and obtains the modified project frame template.
Specifically, after a terminal receives a project frame template searched by a server according to a template identifier and a developer updates the project frame template, the terminal acquires modification information of the project frame template, such as a modified project structure, environment configuration, resource files and the like, so as to obtain a modified project frame template.
S606, generating a version identifier of the modified project framework template, and storing the modified project framework template, the template identifier and the version identifier in a server in an associated mode.
The version identifier is used for identifying the update of the project framework template, and each time the update is performed, a corresponding version identifier is generated, which can be a version number.
Specifically, the terminal generates a version identifier of the modified project framework template, and then stores the modified project framework template, the template identifier and the version identifier in a server corresponding to the storage server address in an associated manner. When a developer needs to query the project framework template, the project framework template with the same template identification and different versions can be selected to be queried.
In the above embodiment, by receiving an update instruction of the project frame template, where the update instruction carries a template identifier and a corresponding storage server address, sending an update request to a corresponding server according to the storage server address, the receiving server obtains modification information of the project frame template according to the project frame template found by the template identifier, obtains a modified project frame template, generates a version identifier of the modified project frame template, and stores the modified project frame template, the template identifier and the version identifier in a server in an associated manner. The project framework template stored in the server can be updated to meet the requirements of developers.
In one embodiment, as shown in fig. 7, after step S206, that is, after the receiving server identifies the item frame template as an item frame according to the item frame template found by the template identifier and stores the item frame template in the preset local storage address, the method further includes the steps of:
S702, receiving an item frame initialization command line execution instruction, analyzing the item frame initialization command line according to the item frame initialization command line execution instruction, and initializing the item frame according to the analysis result to obtain a target item.
The project framework initialization refers to restoring the project framework to a default state, namely, an initially set attribute.
Specifically, the terminal receives an item frame initialization command line execution instruction through the command line interaction interface, analyzes the item frame initialization command line according to the item frame initialization command line execution instruction, and initializes the item frame according to the analysis result to obtain a target item.
S704, receiving a target project operation command line execution instruction, analyzing the target project operation command line according to the target project operation command line execution instruction, operating the target project according to the target project operation command line, and generating a target project initialization page.
Specifically, the terminal analyzes the target item operation command line according to the target item operation command line execution instruction through the command line interaction interface target item operation command line execution instruction, and generates a target item initialization page according to the target item operation command line operation target item.
In the above embodiment, the project frame initialization command line is analyzed according to the project frame initialization command line execution command by receiving the project frame initialization command line execution command, the project frame is initialized according to the analysis result, the target project is obtained, the target project operation command line execution command is received, the target project operation command line is analyzed according to the target project operation command line execution command, the target project is operated according to the target project operation command line, and the target project initialization page is generated. The project initialization page can be obtained according to the project framework, and development by a developer is facilitated.
It should be understood that, although the steps in the flowcharts of fig. 2-4 and 6-7 are shown in order as indicated by the arrows, these steps are not necessarily performed in order 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 of FIGS. 2-4 and 6-7 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in FIG. 8, there is provided an item frame generation apparatus 800 comprising: an information obtaining module 802, a downloading module 804, and a saving module 806, wherein:
The information obtaining module 802 is configured to receive an execution instruction of a template downloading command line, analyze the template downloading command line according to the execution instruction, and obtain project frame template information according to an analysis result, where the project frame template information includes a template identifier and a storage server address corresponding to the template identifier;
a downloading module 804, configured to send a project frame template downloading request to a server corresponding to the storage server address, where the project frame template downloading request carries a template identifier;
and a saving module 806, configured to receive the project frame template searched by the server according to the template identifier, identify the project frame template as a project frame, and save the project frame to a preset local storage address.
In one embodiment, the project framework generating apparatus 800 further includes:
The information display module is used for receiving an execution instruction of the template information acquisition command line, analyzing the template information acquisition command line according to the execution instruction of the template information acquisition command line, obtaining a plurality of item frame template information according to an analysis result, displaying the plurality of item frame template information, and the item frame template information is used for indicating a user to select a corresponding template downloading command line.
In one embodiment, the project framework generating apparatus 800 further includes:
The installation package acquisition module is used for receiving a downloading instruction of the command line interactive tool and acquiring a command line interactive tool installation package according to the downloading instruction;
The installation module is used for receiving an installation instruction of the command line interactive tool installation package, analyzing the command line interactive tool installation package according to the installation instruction and installing the command line interactive tool according to an analysis result;
And the operation module is used for receiving the operation instruction of the command line interaction tool, operating the command line interaction tool according to the operation instruction, obtaining a command line interaction interface and receiving a command line through the command line interaction interface.
In one embodiment, the project framework generating apparatus 800 further includes:
the template building module is used for obtaining the project frame information of each project and building a corresponding project frame template according to the project frame information;
The template storage module is used for generating a template identifier corresponding to the project framework template, acquiring a preset storage server address, and storing the template identifier and the project framework template in a server corresponding to the preset storage server address in an associated mode.
In one embodiment, the project framework generating apparatus 800 further includes:
The updating request sending module is used for receiving an updating instruction of the project framework template, wherein the updating instruction carries a template identifier and a corresponding storage server address, and sending an updating request to a corresponding server according to the storage server address;
The modification information obtaining module is used for receiving the project frame template searched by the server according to the template identification, obtaining modification information of the project frame template and obtaining a modified project frame template;
And the association storage module is used for generating the version identification of the modified project framework template and storing the association of the modified project framework template, the template identification and the version identification into the server.
In one embodiment, the project framework generating apparatus 800 further includes:
The target item obtaining module is used for receiving an item frame initialization command line execution command, analyzing the item frame initialization command line according to the item frame initialization command line execution command, and initializing the item frame according to an analysis result to obtain a target item;
The initialization page generation module is used for receiving a target project operation command line execution instruction, analyzing the target project operation command line according to the target project operation command line execution instruction, operating the target project according to the target project operation command line, and generating a target project initialization page.
For specific limitations of the project frame generating apparatus, reference may be made to the above description of the project frame generating method, and no further description is given here. The respective modules in the above-described item frame generation apparatus may be implemented in whole or in part by software, hardware, or 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.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 9. 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 project framework 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. 9 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 storing a computer program and a processor that when executing the computer program performs the steps of: receiving an execution instruction of a template downloading command line, analyzing the template downloading command line according to the execution instruction, and obtaining project frame template information according to an analysis result, wherein the project frame template information comprises a template identifier and a storage server address corresponding to the template identifier; sending a project framework template downloading request to a server corresponding to the storage server address, wherein the project framework template downloading request carries a template identifier; and the receiving server identifies the project frame template as a project frame according to the project frame template found by the template identification and stores the project frame template into a preset local storage address.
In one embodiment, the processor when executing the computer program further performs the steps of: receiving an execution instruction of a template information acquisition command line, analyzing the template information acquisition command line according to the execution instruction of the template information acquisition command line, obtaining a plurality of item frame template information according to an analysis result, and displaying the plurality of item frame template information, wherein the item frame template information is used for indicating a user to select a corresponding template downloading command line.
In one embodiment, the processor when executing the computer program further performs the steps of: receiving a downloading instruction of the command line interactive tool, and acquiring a command line interactive tool installation package according to the downloading instruction; receiving an installation instruction of the command line interactive tool installation package, analyzing the command line interactive tool installation package according to the installation instruction, and installing the command line interactive tool according to an analysis result; and receiving an operation instruction of the command line interaction tool, operating the command line interaction tool according to the operation instruction, obtaining a command line interaction interface, and receiving a command line through the command line interaction interface.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring project frame information of each project, and establishing a corresponding project frame template according to the project frame information; generating a template identifier corresponding to the project frame template, acquiring a preset storage server address, and storing the template identifier and the project frame template in a server corresponding to the preset storage server address in an associated mode.
In one embodiment, the processor when executing the computer program further performs the steps of: receiving an update instruction of a project framework template, wherein the update instruction carries a template identifier and a corresponding storage server address, and sending an update request to a corresponding server according to the storage server address; the receiving server searches the project frame template according to the template identification, acquires modification information of the project frame template, and acquires the modified project frame template; and generating a version identifier of the modified project framework template, and storing the modified project framework template, the template identifier and the version identifier in a server in an associated mode.
In one embodiment, the processor when executing the computer program further performs the steps of: receiving an item frame initialization command line execution instruction, analyzing the item frame initialization command line according to the item frame initialization command line execution instruction, and initializing the item frame according to an analysis result to obtain a target item; and receiving a target project operation command line execution instruction, analyzing the target project operation command line according to the target project operation command line execution instruction, operating the target project according to the target project operation command line, and generating a target project initialization page.
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: receiving an execution instruction of a template downloading command line, analyzing the template downloading command line according to the execution instruction, and obtaining project frame template information according to an analysis result, wherein the project frame template information comprises a template identifier and a storage server address corresponding to the template identifier; sending a project framework template downloading request to a server corresponding to the storage server address, wherein the project framework template downloading request carries a template identifier; and the receiving server identifies the project frame template as a project frame according to the project frame template found by the template identification and stores the project frame template into a preset local storage address.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving an execution instruction of a template information acquisition command line, analyzing the template information acquisition command line according to the template information acquisition command line execution instruction, obtaining a plurality of item frame template information according to an analysis result, and displaying the plurality of item frame template information, wherein the item frame template information is used for indicating a user to select a corresponding template downloading command line.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving a downloading instruction of the command line interactive tool, and acquiring a command line interactive tool installation package according to the downloading instruction; receiving an installation instruction of the command line interactive tool installation package, analyzing the command line interactive tool installation package according to the installation instruction, and installing the command line interactive tool according to an analysis result; and receiving an operation instruction of the command line interaction tool, operating the command line interaction tool according to the operation instruction, obtaining a command line interaction interface, and receiving a command line through the command line interaction interface.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring project frame information of each project, and establishing a corresponding project frame template according to the project frame information; generating a template identifier corresponding to the project frame template, acquiring a preset storage server address, and storing the template identifier and the project frame template in a server corresponding to the preset storage server address in an associated mode.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving an update instruction of a project framework template, wherein the update instruction carries a template identifier and a corresponding storage server address, and sending an update request to a corresponding server according to the storage server address; the receiving server searches the project frame template according to the template identification, acquires modification information of the project frame template, and acquires the modified project frame template; and generating a version identifier of the modified project framework template, and storing the modified project framework template, the template identifier and the version identifier in a server in an associated mode.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving an item frame initialization command line execution instruction, analyzing the item frame initialization command line according to the item frame initialization command line execution instruction, and initializing the item frame according to an analysis result to obtain a target item; and receiving a target project operation command line execution instruction, analyzing the target project operation command line according to the target project operation command line execution instruction, operating the target project according to the target project operation command line, and generating a target project initialization page.
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 (10)

1. A method of project framework generation, the method comprising:
Acquiring project frame information of each project, and establishing a corresponding project frame template according to the project frame information; generating a template identifier corresponding to the project framework template, acquiring a preset storage server address, and storing the template identifier and the project framework template in a server corresponding to the preset storage server address in an associated mode;
Receiving an update instruction of a project framework template, wherein the update instruction carries a template identifier and a corresponding storage server address, and sending an update request to a corresponding server according to the storage server address; receiving a project frame template searched by the server according to the template identification, and acquiring modification information of the project frame template to obtain a modified project frame template; generating a version identifier of the modified project framework template, and storing the modified project framework template, the template identifier and the version identifier in the server in an associated manner;
Receiving a downloading instruction of a command line interactive tool, and acquiring a command line interactive tool installation package according to the downloading instruction; receiving an installation instruction of the command line interactive tool installation package, analyzing the command line interactive tool installation package according to the installation instruction, and installing the command line interactive tool according to an analysis result; receiving an operation instruction of the command line interaction tool, operating the command line interaction tool according to the operation instruction to obtain a command line interaction interface, and receiving a command line through the command line interaction interface;
Receiving an execution instruction of a template information acquisition command line, analyzing the template information acquisition command line according to the execution instruction of the template information acquisition command line, obtaining a plurality of item frame template information according to an analysis result, and displaying the item frame template information, wherein the item frame template information is used for indicating a user to select a corresponding template downloading command line;
Receiving an execution instruction of a template downloading command line, analyzing the template downloading command line according to the execution instruction, and obtaining project frame template information according to an analysis result, wherein the project frame template information comprises a template identifier and a storage server address corresponding to the template identifier;
Sending a project frame template downloading request to a server corresponding to the storage server address, wherein the project frame template downloading request carries the template identifier;
receiving a project frame template searched by the server according to the template identification, identifying the project frame template as a project frame and storing the project frame template into a preset local storage address, wherein the project frame template is a configured development environment initialized based on project complexity, the project frame template is established according to project frame information, the project frame information is specific information of a front-end project development environment, and the method comprises the following steps: project structure information, code specification information, environment configuration information, component information, and project resource information;
Receiving the project frame initialization command line execution instruction, analyzing the project frame initialization command line according to the project frame initialization command line execution instruction, and initializing the project frame according to the analysis result to obtain a target project; receiving a target project operation command line execution instruction, analyzing the target project operation command line according to the target project operation command line execution instruction, operating the target project according to the target project operation command line, and generating a target project initialization page, wherein project framework initialization refers to restoring a project framework into an initially set attribute.
2. The method of claim 1, wherein the identifying the project frame template as a project frame and saving to a preset local storage address comprises:
Generating a folder named as a template identification of the project frame, and storing the project frame template into the folder.
3. The method of claim 1, wherein the template download command line is a command prompt for retrieving project framework template information.
4. The method of claim 1, wherein the modification information of the project framework template includes a modified project structure, a modified environment configuration, and a modified resource file.
5. An item frame generation apparatus, the apparatus comprising:
The template building module is used for obtaining the project frame information of each project and building a corresponding project frame template according to the project frame information; the template storage module is used for generating a template identifier corresponding to the project framework template, acquiring a preset storage server address, and storing the template identifier and the project framework template in a server corresponding to the preset storage server address in an associated mode;
The updating request sending module is used for receiving an updating instruction of the project framework template, wherein the updating instruction carries a template identifier and a corresponding storage server address, and sending an updating request to a corresponding server according to the storage server address; the modification information obtaining module is used for receiving the project frame template searched by the server according to the template identification, obtaining modification information of the project frame template and obtaining a modified project frame template; the association storage module is used for generating a version identifier of the modified project framework template and storing the modified project framework template, the template identifier and the version identifier in the server in an association manner;
The installation package acquisition module is used for receiving a downloading instruction of the command line interactive tool and acquiring the command line interactive tool installation package according to the downloading instruction; the installation module is used for receiving an installation instruction of the command line interactive tool installation package, analyzing the command line interactive tool installation package according to the installation instruction and installing the command line interactive tool according to an analysis result; the operation module is used for receiving an operation instruction of the command line interaction tool, operating the command line interaction tool according to the operation instruction, obtaining a command line interaction interface, and receiving a command line through the command line interaction interface;
The information display module is used for receiving an execution instruction of a template information acquisition command line, analyzing the template information acquisition command line according to the execution instruction of the template information acquisition command line, obtaining a plurality of item frame template information according to an analysis result, and displaying the plurality of item frame template information, wherein the item frame template information is used for indicating a user to select a corresponding template downloading command line;
The information obtaining module is used for receiving an execution instruction of a template downloading command line, analyzing the template downloading command line according to the execution instruction, and obtaining project frame template information according to an analysis result, wherein the project frame template information comprises a template identifier and a storage server address corresponding to the template identifier;
The downloading module is used for sending a project framework template downloading request to a server corresponding to the storage server address, wherein the project framework template downloading request carries the template identifier;
the storage module is configured to receive a project frame template searched by the server according to the template identifier, identify the project frame template as a project frame, and store the project frame template to a preset local storage address, where the project frame template refers to a configured development environment initialized based on project complexity, the project frame template is established according to project frame information, and the project frame information refers to specific information of a front-end project development environment, and includes: project structure information, code specification information, environment configuration information, component information, and project resource information;
The target item obtaining module is used for receiving the item frame initialization command line execution instruction, analyzing the item frame initialization command line according to the item frame initialization command line execution instruction, and initializing the item frame according to the analysis result to obtain a target item; the initialization page generation module is used for receiving a target project operation command line execution instruction, analyzing the target project operation command line according to the target project operation command line execution instruction, operating the target project according to the target project operation command line, and generating a target project initialization page, wherein project framework initialization refers to restoring a project framework into an initially set attribute.
6. The apparatus of claim 5, wherein the save module is further configured to generate a folder named as a template identification of the project frame, and store the project frame template to the folder.
7. The apparatus of claim 5, wherein the template download command line is a command prompt for retrieving project framework template information.
8. The apparatus of claim 5, wherein the modification information of the project framework template comprises a modified project structure, a modified environment configuration, and a modified resource file.
9. 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 of claims 1 to 4 when the computer program is executed.
10. 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 4.
CN201910082991.5A 2019-01-24 2019-01-24 Project framework generation method, device, computer equipment and storage medium Active CN109814854B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910082991.5A CN109814854B (en) 2019-01-24 2019-01-24 Project framework generation method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910082991.5A CN109814854B (en) 2019-01-24 2019-01-24 Project framework generation method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109814854A CN109814854A (en) 2019-05-28
CN109814854B true CN109814854B (en) 2024-05-03

Family

ID=66605545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910082991.5A Active CN109814854B (en) 2019-01-24 2019-01-24 Project framework generation method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109814854B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347376A (en) * 2019-06-27 2019-10-18 无线生活(杭州)信息科技有限公司 Project development method and device
CN110647317A (en) * 2019-09-27 2020-01-03 中国航空无线电电子研究所 Template-based application framework generation method
CN110795088B (en) * 2019-10-29 2021-05-04 京东数字科技控股有限公司 Front-end engineering project construction method and tool, and computer-readable storage medium
CN112015375A (en) * 2020-08-21 2020-12-01 广州欢网科技有限责任公司 Background management system creating method and device and electronic equipment
CN111966355B (en) * 2020-09-03 2023-12-12 深圳赛安特技术服务有限公司 Project operation method, device, equipment and computer storage medium
CN113791778A (en) * 2020-11-18 2021-12-14 北京沃东天骏信息技术有限公司 Software project generation method and device, electronic equipment and storage medium
CN112596714A (en) * 2020-12-10 2021-04-02 车巴达(苏州)网络科技有限公司 Webpage development method, device, terminal, server and storage medium
CN112799652A (en) * 2021-02-08 2021-05-14 北京乐学帮网络技术有限公司 Client construction method and device, electronic equipment and storage medium
CN115423335A (en) * 2022-09-14 2022-12-02 易纳购科技(北京)有限公司 Project creation method and device, storage medium and computer equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063764A (en) * 2014-07-01 2014-09-24 成都市卓睿科技有限公司 Visualized project code generating device and method
CN106502663A (en) * 2016-10-17 2017-03-15 成都知道创宇信息技术有限公司 A kind of front end project skeleton generating method
CN107436764A (en) * 2017-07-07 2017-12-05 福建天泉教育科技有限公司 Code Template management method, storage medium
CN108196825A (en) * 2017-12-28 2018-06-22 新华三大数据技术有限公司 The construction method and system of software project
CN108399083A (en) * 2017-02-07 2018-08-14 北京京东尚科信息技术有限公司 A kind of system deployment method, apparatus, electronic equipment and storage medium
CN108536431A (en) * 2018-04-04 2018-09-14 浙江小泰科技有限公司 A kind of global command's row creates front end project approach and system
CN108762805A (en) * 2018-05-07 2018-11-06 武汉斗鱼网络科技有限公司 A kind of Hybrid Development Frameworks and frame design method based on Cordova and Typescript
CN109074537A (en) * 2016-04-28 2018-12-21 微软技术许可有限责任公司 The lazy of template generates
CN109189388A (en) * 2018-08-15 2019-01-11 深圳市轱辘汽车维修技术有限公司 Page configuration method, server and computer-readable medium
KR20190006349A (en) * 2017-07-10 2019-01-18 박태영 System and method for providing client-server intergrated development platform

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063764A (en) * 2014-07-01 2014-09-24 成都市卓睿科技有限公司 Visualized project code generating device and method
CN109074537A (en) * 2016-04-28 2018-12-21 微软技术许可有限责任公司 The lazy of template generates
CN106502663A (en) * 2016-10-17 2017-03-15 成都知道创宇信息技术有限公司 A kind of front end project skeleton generating method
CN108399083A (en) * 2017-02-07 2018-08-14 北京京东尚科信息技术有限公司 A kind of system deployment method, apparatus, electronic equipment and storage medium
CN107436764A (en) * 2017-07-07 2017-12-05 福建天泉教育科技有限公司 Code Template management method, storage medium
KR20190006349A (en) * 2017-07-10 2019-01-18 박태영 System and method for providing client-server intergrated development platform
CN108196825A (en) * 2017-12-28 2018-06-22 新华三大数据技术有限公司 The construction method and system of software project
CN108536431A (en) * 2018-04-04 2018-09-14 浙江小泰科技有限公司 A kind of global command's row creates front end project approach and system
CN108762805A (en) * 2018-05-07 2018-11-06 武汉斗鱼网络科技有限公司 A kind of Hybrid Development Frameworks and frame design method based on Cordova and Typescript
CN109189388A (en) * 2018-08-15 2019-01-11 深圳市轱辘汽车维修技术有限公司 Page configuration method, server and computer-readable medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于模板技术构建船舶螺旋桨设计平台;黄金锋 等;中国舰船研究;20130116(第01期);第94-101页 *

Also Published As

Publication number Publication date
CN109814854A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN109814854B (en) Project framework generation method, device, computer equipment and storage medium
CN108446116B (en) Application program page generation method and device, computer equipment and storage medium
CN109901834B (en) Document page generation method, device, computer equipment and storage medium
CN109542399B (en) Software development method and device, terminal equipment and computer readable storage medium
CN108920354B (en) Embedded point management method and device, computer equipment and storage medium
CN108829477B (en) Interface jump method, device, computer equipment and storage medium
CN108363587B (en) Application program operation monitoring method and device, computer equipment and storage medium
CN110569035B (en) Code compiling method, device, equipment and storage medium of software development project
WO2020253061A1 (en) Page generating method and apparatus, computer device, and storage medium
WO2020151333A1 (en) Page loading method, apparatus, computer device and storage medium
CN109032662B (en) Code file generation method and device, computer equipment and storage medium
CN111563220A (en) Business website project construction method and device, computer equipment and storage medium
CN109361628B (en) Message assembling method and device, computer equipment and storage medium
WO2020199594A1 (en) Service component loading method and apparatus, and computer device and storage medium
CN108418797B (en) Webpage access method and device, computer equipment and storage medium
CN108959384B (en) Webpage data acquisition method and device, computer equipment and storage medium
CN111190609B (en) Service processing method, device, equipment and storage medium
CN110688598A (en) Service parameter acquisition method and device, computer equipment and storage medium
CN112769706B (en) Componentized routing method and system
CN111083054B (en) Route configuration processing method and device, computer equipment and storage medium
CN111949262A (en) Front-end project construction method and device, computer equipment and storage medium
CN112231379A (en) API (application program interface) auditing method, device, equipment and storage medium based on micro-service architecture
CN113835713B (en) Source code packet downloading method, device, computer equipment and storage medium
CN113032078A (en) Page display method and device, electronic equipment and computer readable storage medium
CN111158777A (en) Component calling method and device and computer readable 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