CN113934412A - Program generation method, device, equipment and storage medium - Google Patents

Program generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN113934412A
CN113934412A CN202010677925.5A CN202010677925A CN113934412A CN 113934412 A CN113934412 A CN 113934412A CN 202010677925 A CN202010677925 A CN 202010677925A CN 113934412 A CN113934412 A CN 113934412A
Authority
CN
China
Prior art keywords
program
template
development
developed
test
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.)
Pending
Application number
CN202010677925.5A
Other languages
Chinese (zh)
Inventor
李智杰
何烁
梁琦
上官
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo 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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN202010677925.5A priority Critical patent/CN113934412A/en
Publication of CN113934412A publication Critical patent/CN113934412A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

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

Abstract

The invention discloses a program generation method, a device, equipment and a storage medium, wherein the method comprises the steps of extracting a development project identifier from a program development request when the program development request is received; generating a program template to be developed through a preset development tool according to the development project identification, wherein the program template to be developed supports browser language codes; when a program adjusting instruction is received, adjusting a program template to be developed according to the program adjusting instruction to obtain an adjusted program template to be developed; and when a program generation instruction is received, generating a corresponding target program according to the adjusted to-be-developed program template. According to the method and the device, the to-be-developed program template supporting the browser language code is generated according to the program development request of the developer, so that the developer can conveniently adjust the to-be-developed program template, the program access and function opening functions are provided for the developer, and the technical problems that the existing open platform does not support the browser development language and cannot realize the development of Web small programs are solved.

Description

Program generation method, device, equipment and storage medium
Technical Field
The present invention relates to the field of Web development technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating a program.
Background
At present, small program development can be carried out through an open platform of a WeChat small program or an Huawei fast service intelligent platform, but the WeChat small program is based on a WeChat client, the Huawei fast service is based on a Huawei mobile phone operating system, and neither of the WeChat small program and the Huawei fast service is a Web end product and cannot carry out Web development. The existing open platform does not use an HTML development language and a CSS development language supported by a browser, a developer needs to learn new grammar again when using the existing open platform, and the existing open platform only supports searching and does not provide algorithm personalized recommendation based on a user.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a program generation method, a program generation device, program generation equipment and a storage medium, and aims to solve the technical problems that the existing open platform does not support a browser development language and cannot realize Web small program development.
In order to achieve the above object, the present invention provides a program generating method including the steps of:
when a program development request is received, extracting a development project identifier from the program development request;
generating a program template to be developed through a preset development tool according to the development project identification, wherein the program template to be developed supports browser language codes;
when a program adjusting instruction is received, adjusting the program template to be developed according to the program adjusting instruction to obtain an adjusted program template to be developed;
and when a program generating instruction is received, generating a corresponding target program according to the adjusted to-be-developed program template.
Optionally, after the step of extracting the development item identifier from the program development request when the program development request is received, the method further includes:
acquiring a corresponding development tool data packet according to the development project identifier;
and analyzing the development tool data packet to obtain a preset development tool.
Optionally, the step of generating a to-be-developed program template through a preset development tool according to the development project identifier specifically includes:
determining a target development language according to the development project identifier;
acquiring a target development language template from a browser language code template library of the preset development tool according to the target development language;
and generating a program template to be developed according to the target development language template and the development project identifier.
Optionally, when a program adjustment instruction is received, the step of adjusting the to-be-developed program template according to the program adjustment instruction to obtain the adjusted to-be-developed program template specifically includes:
when a program adjusting instruction is received, code adjusting information corresponding to the program adjusting instruction is determined;
judging whether the code adjustment information meets development constraint conditions or not;
and when the code adjustment information accords with the development constraint condition, adjusting the program template to be developed according to the development constraint condition to obtain the adjusted program template to be developed.
Optionally, the step of adjusting the to-be-developed program template according to the development constraint condition to obtain an adjusted to-be-developed program template specifically includes:
adjusting the program template to be developed according to the development constraint condition to generate a test program template and a preview program template;
testing the test program template to obtain a test result;
when the test result is that the test is passed, previewing the preview program template to obtain a preview result;
and generating an adjusted program template to be developed according to the preview result.
Optionally, the step of adjusting the to-be-developed program template according to the development constraint condition to generate a test program template and a preview program template specifically includes:
adjusting the program template to be developed according to development constraint conditions to generate a test program template;
and integrating the test program template into a target webpage product template to generate a preview program template.
Optionally, the step of testing the test program template to obtain a test result specifically includes:
sending the test program template to a code test server so that the code test server tests the test program template and feeds back a test address for representing a test result storage area;
and receiving a test address fed back by the code test server, and obtaining a test result according to the test address.
Optionally, when the test result is that the test is passed, the step of previewing the preview program template to obtain a preview result specifically includes:
when the test result is that the test is passed, the preview program template is sent to a code compiling server so that the code compiling server compiles the preview program template;
receiving a compiled preview program template fed back by the code compiling server;
sending the compiled preview program template to a code hosting server so that the code hosting server can preview the compiled preview program template;
receiving compiled code identification fed back by the code hosting server;
and generating a preview address according to the compiled code identifier, and obtaining a preview result through the preview address.
Optionally, the step of sending the preview program template to a code compiling server to make the code compiling server compile the preview program template includes:
sending the preview program template to a code compiling server so that the code compiling server acquires preview code data corresponding to the preview program template;
receiving compiled preview code data fed back after the code compiling server compiles the preview code data;
and taking the compiled preview code data as a compiled preview program template.
Optionally, the step of sending the compiled preview program template to a code hosting server to enable the code hosting server to preview the compiled preview program template specifically includes:
uploading the compiled preview code data packet to a code hosting server, and receiving an uploading result fed back by the code hosting server;
and when the uploading result is successful, receiving a compiled code identifier fed back by the code hosting server.
Optionally, the step of generating a corresponding target program according to the adjusted to-be-developed program template when the program generation instruction is received specifically includes:
when a program generating instruction is received, generating a program template to be issued according to the adjusted program template to be developed;
sending the program template to be issued to a code compiling server so that the code compiling server compiles the program template to be issued;
receiving a compiled program template to be issued fed back by the code compiling server;
sending the compiled program template to be issued to a code hosting server so that the code hosting server can issue and preview the compiled program template to be issued;
receiving a code identifier to be issued fed back by the code hosting server, and generating an address to be issued according to the code identifier to be issued;
and obtaining a corresponding target program through the address to be issued.
Optionally, after the step of generating the corresponding target program according to the adjusted to-be-developed program template when the program generation instruction is received, the method further includes:
sending the target program to a program auditing server so that the program auditing server can audit the target program;
receiving an auditing result fed back by the program auditing server;
and determining whether the target program is operated online according to the auditing result.
Further, to achieve the above object, the present invention also proposes a program generating device including:
the extraction module is used for extracting a development project identifier from a program development request when the program development request is received;
the template generation module is used for generating a program template to be developed through a preset development tool according to the development project identification, and the program template to be developed supports browser language codes;
the adjusting module is used for adjusting the program template to be developed according to the program adjusting instruction when the program adjusting instruction is received, and obtaining the adjusted program template to be developed;
and the target generation module is used for generating a corresponding target program according to the adjusted to-be-developed program template when a program generation instruction is received.
Optionally, the extraction module is further configured to obtain a corresponding development tool data package according to the development project identifier;
the extraction module is further used for analyzing the development tool data packet to obtain a preset development tool.
Optionally, the template generating module is further configured to determine a target development language according to the development project identifier;
the template generating module is further used for acquiring a target development language template from a browser language code template library of the preset development tool according to the target development language;
the template generating module is also used for generating a program template to be developed according to the target development language template and the development project identification.
Optionally, the adjusting module is further configured to determine, when a program adjusting instruction is received, code adjusting information corresponding to the program adjusting instruction;
the adjusting module is also used for judging whether the code adjusting information meets the development constraint condition;
and the adjusting module is also used for adjusting the program template to be developed according to the development constraint condition when the code adjusting information accords with the development constraint condition to obtain the adjusted program template to be developed.
Optionally, the adjusting module is further configured to adjust the to-be-developed program template according to the development constraint condition, so as to generate a test program template and a preview program template;
the adjusting module is also used for testing the test program template to obtain a test result;
the adjusting module is further configured to preview the preview program template to obtain a preview result when the test result is that the test passes;
and the adjusting module is also used for generating an adjusted program template to be developed according to the preview result.
Optionally, the adjusting module is further configured to adjust the to-be-developed program template according to a development constraint condition, so as to generate a test program template;
the adjusting module is further used for integrating the test program template into a target webpage product template to generate a preview program template.
Furthermore, to achieve the above object, the present invention also proposes a program generating device comprising a memory, a processor, and a program generating program stored on the memory and executable on the processor, the program generating program being configured to implement the steps of the program generating method as described above.
Furthermore, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a program generation program which, when executed by a processor, implements the steps of the program generation method as described above.
In the invention, when a program development request is received, a development project identifier is extracted from the program development request; generating a program template to be developed through a preset development tool according to the development project identification, wherein the program template to be developed supports browser language codes; when a program adjusting instruction is received, adjusting the program template to be developed according to the program adjusting instruction to obtain an adjusted program template to be developed; and when a program generating instruction is received, generating a corresponding target program according to the adjusted to-be-developed program template. By the method, the to-be-developed program template supporting the browser language code is generated according to the program development request of the developer, so that the developer can conveniently adjust the to-be-developed program template, the functions of providing program access, function opening and the like for the developer are realized, the development efficiency and the customization capability of a Web end product are greatly improved, and the technical problem that the existing open platform does not support the browser development language and cannot realize the development of Web small programs is solved.
Drawings
Fig. 1 is a schematic structural diagram of a program generation device of a hardware execution environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a program generation method according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a program generation method according to the present invention;
FIG. 4 is a flowchart illustrating a third exemplary embodiment of a program generation method according to the present invention;
FIG. 5 is a diagram illustrating a test procedure template according to the present embodiment;
FIG. 6 is a diagram illustrating a preview program template according to the present embodiment;
fig. 7 is a block diagram showing the configuration of the first embodiment of the program generating apparatus according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a program generation device of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the program generation device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), and the optional user interface 1003 may further include a standard wired interface and a wireless interface, and the wired interface for the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory or a Non-volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the architecture shown in fig. 1 does not constitute a limitation of the program generating apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a program generation program.
In the program generating device shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting user equipment; the program generating apparatus calls the program generating program stored in the memory 1005 by the processor 1001 and executes the program generating method provided by the embodiment of the present invention.
Based on the above hardware structure, an embodiment of the program generation method of the present invention is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of the program generating method according to the present invention.
In the first embodiment, the program generating method includes the steps of:
step S10: upon receiving a program development request, a development project identification is extracted from the program development request.
It should be noted that the execution subject of this embodiment is an applet open platform on the program generation device, and the program generation device may be an electronic device such as a personal computer or a server, which is not limited in this embodiment. When receiving a program development request, the applet open platform extracts a development project identifier from the program development request. Before the applet opening platform receives a program development request, a developer may register an account in the applet opening platform to become a registered developer, and the registered developer may create an applet (which may be referred to as a cube in this embodiment) in the open platform.
Specifically, the developer needs to register an account number on the applet open platform to become a registered developer. The method comprises the steps that a registered developer needs to input contents such as an applet product name, an applet classification and applet related information, according to the contents such as the applet product name, the applet classification and the applet related information, a cube Id is created for the registered developer by an applet open platform, the cube Id can be a development project identifier, and when a program development request of the registered developer is received, the applet open platform extracts the development project identifier from the program development request to identify the identity of the registered developer.
Step S20: and generating a program template to be developed through a preset development tool according to the development project identification, wherein the program template to be developed supports browser language codes.
It is easy to understand that, after the step of extracting the development item identifier from the program development request when the program development request is received, the method may further include: acquiring a corresponding development tool data packet according to the development project identifier; and analyzing the development tool data packet to obtain a preset development tool. For example, the applet opening platform extracts a development project identifier from the program development request, identifies the identity of a registered developer, obtains a corresponding development tool data package, analyzes the development tool data package, and obtains a preset development tool, where the preset development tool may support a window, mac, and linux operating system, and the preset development tool may include two types, which are selectable from a command line tool and a graphical interface application program, and of course, the preset development tool may also be implemented by combining the two types. In addition, the preset development tool may be designed into other types according to actual situations, which is not limited in this embodiment.
Specifically, a to-be-developed program template is generated by a preset development tool according to the development project identifier, for example, a registered developer generates the to-be-developed program template by the obtained cube Id through the preset development tool according to the development project identifier, that is, an empty project can be created by the preset development tool according to the cube Id, where the initial directory structure of the empty project may include: cube, api, json and src/, wherein cube is cube configuration information and json format file; json is a cube network data interface configuration and json format file; and src/resource directories are applied to the cubes, and resources such as cube codes developed by registered developers can be placed under the directories. The registered developer generates a to-be-developed program template through a preset development tool according to the development project identifier, and in addition, the registered developer may also use a custom template, which is not limited in this embodiment.
It should be understood that the step of generating the to-be-developed program template through the preset development tool according to the development project identifier may include: determining a target development language according to the development project identifier; acquiring a target development language template from a browser language code template library of the preset development tool according to the target development language; and generating a program template to be developed according to the target development language template and the development project identifier.
Specifically, src/lower may also include src/cube.tpl, src/cube.css, src/cube.js, and src/assets may also include src/assets/launchymam.png; wherein src/cube.tpl is a cube front end HTML template; cs is a style of the front end cs of the cube; js is a cube front-end script and provides open JavaScript; src/assets are static resource directories such as pictures; png is the cube start map, which will be used as the occupied bitmap of the front-end interface request waiting phase. For example, determining a target development language as an HTML development language according to the development project identification; acquiring a cube front-end HTML template from a browser language code template library of the preset development tool according to an HTML development language; and generating a program template to be developed according to the cube front-end HTML template and the development project identifier.
Step S30: and when a program adjusting instruction is received, adjusting the program template to be developed according to the program adjusting instruction to obtain the adjusted program template to be developed.
It should be noted that, when a program adjustment instruction is received, the step of adjusting the to-be-developed program template according to the program adjustment instruction to obtain an adjusted to-be-developed program template specifically includes: when a program adjusting instruction is received, code adjusting information corresponding to the program adjusting instruction is determined; judging whether the code adjustment information meets development constraint conditions or not; and when the code adjustment information accords with the development constraint condition, adjusting the program template to be developed according to the development constraint condition to obtain the adjusted program template to be developed.
Specifically, a registered developer carries out cube development and debugging, the development constraint conditions agreed by a development document are followed in the development process, the development constraint conditions are generated according to the constraint conditions agreed by the development document, and when a program adjustment instruction is received, code adjustment information corresponding to the program adjustment instruction input by the registered developer is determined; and judging whether the code adjustment information meets the development constraint condition, for example, the webpage programming adopts a combination of HTML + CSS + JavaScript, wherein HTML is used for describing the structure of the current page, CSS is used for describing the appearance of the page, and JavaScript is generally used for processing the interaction between the page and the user. Similarly, the same role is also played in the cube of the present embodiment, wherein tpl plays a role similar to HTML. Tpl, which is very similar to HTML, is opened src/cube, and consists of tags, attributes, etc. But there are also different places: in the general development flow of web pages, the DOM (tree generated corresponding to the description of HTML) is usually operated by JavaScript to cause some changes in the interface in response to the user's behavior. For example, when the user clicks a button, the JavaScript records some state into the JavaScript variable, and manipulates the properties or behaviors of the DOM through the DOMAPI, thereby causing an interface change. However, as the running project becomes larger and larger, the code is filled with a great deal of interface interaction logic and various state variables of the program, which is obviously not a good development mode, so that the development mode of the MVVM (for example, read, Vue. js) is proposed, and the rendering and logic separation is promoted. That is to say, in this embodiment, the JavaScript does not directly manipulate the DOM, and the JavaScript only needs to manage the state, and then describes the relationship between the state and the interface structure by using a template syntax.
Step S40: and when a program generating instruction is received, generating a corresponding target program according to the adjusted to-be-developed program template.
It is easy to understand that, the step of generating the corresponding target program according to the adjusted to-be-developed program template when receiving the program generation instruction may include: when a program generating instruction is received, generating a program template to be issued according to the adjusted program template to be developed; sending the program template to be issued to the code compiling server so that the code compiling server compiles the program template to be issued; receiving a compiled program template to be issued fed back by the code compiling server; sending the compiled program template to be issued to the code hosting server so that the code hosting server can issue and preview the compiled program template to be issued; receiving a code identifier to be issued fed back by the code hosting server, and generating an address to be issued according to the code identifier to be issued; and obtaining a corresponding target program through the address to be issued.
Specifically, when a program adjusting instruction is received, the program template to be developed is adjusted according to the program adjusting instruction, wherein the adjustment of the program template to be developed comprises a testing part and a previewing part, the adjusted program template to be developed is obtained, namely after the testing part and the previewing part are completed, a registered developer can prepare to release a formal program template, the program template to be released is generated according to the adjusted program template to be developed, part of the flow of the program template to be released can be consistent with the previewing part, and a reviewing link is added to the latter half flow of the program template to be released.
It should be noted that, after the step of generating the corresponding target program according to the adjusted to-be-developed program template when the program generation instruction is received, the method further includes: sending the target program to a program auditing server so that the program auditing server can audit the target program; receiving an auditing result fed back by the program auditing server; and determining whether the target program is operated online according to the auditing result. For example, a registered developer can perform submission on a cube open platform, send the target program to a program auditing server, namely a cube auditing background, and wait for auditing in each link, wherein the cube auditing background can perform technical auditing, design auditing and operation auditing. If the audit is passed, the registered developer can operate the target program to run online on the cube open platform. If the verification is not passed, the registered developer needs to make adjustment according to the rejection reason and readjust the to-be-developed program template.
The embodiment extracts a development project identifier from a program development request when the program development request is received; generating a program template to be developed through a preset development tool according to the development project identification, wherein the program template to be developed supports browser language codes; when a program adjusting instruction is received, adjusting the program template to be developed according to the program adjusting instruction to obtain an adjusted program template to be developed; and when a program generating instruction is received, generating a corresponding target program according to the adjusted to-be-developed program template. By the method, the to-be-developed program template supporting the browser language code is generated according to the program development request of the developer, so that the developer can conveniently adjust the to-be-developed program template, the functions of providing program access, function opening and the like for the developer are realized, the development efficiency and the customization capability of a Web end product are greatly improved, and the technical problem that the existing open platform does not support the browser development language and cannot realize the development of Web small programs is solved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of the program generating method according to the present invention, and the second embodiment of the program generating method according to the present invention is proposed based on the first embodiment illustrated in fig. 2.
In the second embodiment, the step S30 includes:
step S301: when a program adjusting instruction is received, code adjusting information corresponding to the program adjusting instruction is determined.
It should be noted that, the registered developer performs cube development and debugging, the development constraint condition is generated according to the constraint condition agreed by the development document in the development process, and when the program adjustment instruction is received, the code adjustment information corresponding to the program adjustment instruction input by the registered developer is determined.
Step S302: and judging whether the code adjustment information meets the development constraint condition.
It is easy to understand that whether the code adjustment information meets the development constraint condition, for example, the webpage programming adopts a combination of HTML + CSS + JavaScript, where HTML is used to describe the structure of the current page, CSS is used to describe the appearance of the page, and JavaScript is generally used to process the interaction between the page and the user. The registered developer can create an applet (which may be referred to as a cube in this embodiment) in an open platform operation, and similarly, the cube in this embodiment also has the same role, where tpl serves as a role similar to HTML. Tpl, which is very similar to HTML, is opened src/cube, and consists of tags, attributes, etc. But there are also different places: in the general development flow of web pages, the DOM (tree generated corresponding to the description of HTML) is usually operated by JavaScript to cause some changes in the interface in response to the user's behavior. For example, when the user clicks a button, the JavaScript records some state into the JavaScript variable, and manipulates the properties or behaviors of the DOM through the DOMAPI, thereby causing an interface change. However, as the running project becomes larger and larger, the code is filled with a great deal of interface interaction logic and various state variables of the program, which is obviously not a good development mode, so that the development mode of the MVVM (for example, read, Vue. js) is proposed, and the rendering and logic separation is promoted. That is to say, in this embodiment, the JavaScript does not directly manipulate the DOM, and the JavaScript only needs to manage the state, and then describes the relationship between the state and the interface structure by using a template syntax.
Based on the above-mentioned idea, the framework of cube in this embodiment needs to display a character string of "Hello World" on the interface. tpl can be written as such: < p > { { msg } } wherein JavaScript only needs to manage the state: this is setdata ({ msg: "Hello World" }); binding a variable to an interface through the syntax of { }, called data binding. The relationship between the state and the interface is not completely described only by data binding, and if/else, for and the like control capability is also needed.
CSS is used to describe the look of a page, and CSS styles may use the full syntax of CSS. Since all the cubes run in the same webpage, different CSS namespaces are allocated to different cubes, and the default style is affected by the default style of website navigation.
JavaScript is generally used to handle the interaction of this page with the user, and JavaScript logic interacts: a service that is only an interface presentation is not enough, but also needs to interact with the user: responding to the click of the user, acquiring the position of the user and the like. In the cube of the present embodiment, the operation of the user can be processed by writing a JavaScript script file. For example: < p > { { msg } } </p >; < button-click { { this. click me () } } > click me </button >; when the button is clicked, displaying msg on the interface as "hello world", declaring an attribute on-click on the button, and declaring click ME in a JavaScript file to respond to the click Me () {; this. setDate ({ msg: "Hello World" }); }; and thus can respond to the user's operation. In addition, the rich API provided by cube can be called in JavaScript, which is not limited in this embodiment.
Step S303: and when the code adjustment information accords with the development constraint condition, adjusting the program template to be developed according to the development constraint condition to obtain the adjusted program template to be developed.
It should be noted that, the step of adjusting the to-be-developed program template according to the development constraint condition to obtain an adjusted to-be-developed program template may include: adjusting the program template to be developed according to the development constraint condition to generate a test program template and a preview program template; testing the test program template to obtain a test result; when the test result is that the test is passed, previewing the preview program template to obtain a preview result; and generating an adjusted program template to be developed according to the preview result.
Specifically, the program template to be developed is adjusted according to development constraint conditions to generate a test program template; and integrating the test program template into a target webpage product template to generate a preview program template. For example, the target Web product template is the final Web product, the preview program template integrates the cube of the test program template into the final Web product, and the test program template is not integrated.
In this embodiment, when a program adjustment instruction is received, code adjustment information corresponding to the program adjustment instruction is determined; judging whether the code adjustment information meets development constraint conditions or not; and when the code adjustment information accords with the development constraint condition, adjusting the program template to be developed according to the development constraint condition to obtain the adjusted program template to be developed. By the method, the to-be-developed program template supporting the browser language code is generated according to the program development request of the developer, so that the developer can conveniently adjust the to-be-developed program template, the functions of providing program access, function opening and the like for the developer are realized, the development efficiency and the customization capability of a Web end product are greatly improved, and the technical problem that the existing open platform does not support the browser development language and cannot realize the development of Web small programs is solved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a third embodiment of the program generating method according to the present invention, which is proposed based on the first embodiment shown in fig. 2 and the second embodiment shown in fig. 3. This embodiment is explained based on the second embodiment.
In a third embodiment, the step S303 specifically includes:
step S3031: and when the code adjustment information accords with the development constraint condition, adjusting the program template to be developed according to the development constraint condition to generate a test program template and a preview program template.
It should be noted that, the step of adjusting the to-be-developed program template according to the development constraint condition to generate a test program template and a preview program template may include: adjusting the program template to be developed according to development constraint conditions to generate a test program template; and integrating the test program template into a target webpage product template to generate a preview program template. For example, referring to fig. 5, fig. 5 is a schematic diagram of a test program template in the present embodiment, where the test program template is not integrated. The target Web product template is a final Web product, and referring to fig. 6, fig. 6 is a schematic diagram of a preview program template in this embodiment, and the preview program template integrates a cube of the test program template into the final Web product.
Step S3032: and testing the test program template to obtain a test result.
It is easy to understand that the step of testing the test program template to obtain the test result may include: sending the test program template to a code test server so that the code test server tests the test program template and feeds back a test address for representing a test result storage area; and receiving a test address fed back by the code test server, and obtaining a test result according to the test address.
Specifically, a test code data packet of the test program template is obtained through the code test server; the code test server analyzes the test code data packet to obtain analyzed test code data; and running the analyzed test code data through the code test server to generate a test address. And testing the test program template, namely performing cube development and debugging by the registered developer, wherein the registered developer can issue the version at any time in the development process for testing, and the issuing can be divided into a test program template and a preview program template. The test program template packages and sends codes to the code test server, the code test server directly runs the codes after decompression, an online test version address is generated immediately, the online test version address is used as a test address fed back by the code test server, the test address fed back by the code test server is received, and a test result is obtained according to the test address.
Step S3033: and when the test result is that the test is passed, previewing the preview program template to obtain a preview result.
It should be noted that, when the test result is that the test passes, the step of previewing the preview program template to obtain a preview result may include: when the test result is that the test is passed, the preview program template is sent to a code compiling server so that the code compiling server compiles the preview program template; receiving a compiled preview program template fed back by the code compiling server; sending the compiled preview program template to a code hosting server so that the code hosting server can preview the compiled preview program template; receiving compiled code identification fed back by the code hosting server; and generating a preview address according to the compiled code identifier, and obtaining a preview result through the preview address.
It is to be understood that the step of sending the preview program template to a code compiling server to make the code compiling server compile the preview program template may include: sending the preview program template to a code compiling server so that the code compiling server acquires preview code data corresponding to the preview program template; receiving compiled preview code data fed back after the code compiling server compiles the preview code data; and taking the compiled preview code data as a compiled preview program template. Specifically, a preview code data packet of the preview program template is obtained through the code compiling server; compiling the preview code data packet by the code compiling server to obtain a compiled preview code data packet; and taking the compiled preview code data packet as a compiled preview program template.
It should be understood that the step of sending the compiled preview program template to a code hosting server so that the code hosting server previews the compiled preview program template specifically includes: uploading the compiled preview code data packet to a code hosting server, and receiving an uploading result fed back by the code hosting server; and when the uploading result is successful, receiving a compiled code identifier fed back by the code hosting server.
Specifically, the preview codes of the preview program template are packaged and sent to a code compiling server, the preview codes are uploaded to a code hosting server after being compiled and compressed, a code ID (identity), namely a compiled code identifier, is returned after being uploaded successfully, a developer tool immediately generates an online preview version address through the compiled code identifier, and the online preview version address is used as a preview address.
Step S3034: and generating an adjusted program template to be developed according to the preview result.
It should be noted that, the preview code of the preview program template is packaged and sent to the code compiling server, the preview code is compiled and compressed and then uploaded to the code hosting server, after the preview code is successfully uploaded, the code ID, i.e. the compiled code identifier, is returned, the developer tool instantly generates an online preview version address by compiling the code identifier, the online preview version address is used as a preview address, and a preview result is obtained through the preview address.
In this embodiment, the program template to be developed is adjusted according to the development constraint condition to generate a test program template and a preview program template; testing the test program template to obtain a test result; when the test result is that the test is passed, previewing the preview program template to obtain a preview result; and generating an adjusted program template to be developed according to the preview result. By the method, the to-be-developed program template supporting the browser language code is generated according to the program development request of the developer, so that the developer can conveniently adjust the to-be-developed program template, the functions of providing program access, function opening and the like for the developer are realized, the development efficiency and the customization capability of a Web end product are greatly improved, and the technical problem that the existing open platform does not support the browser development language and cannot realize the development of Web small programs is solved.
Furthermore, an embodiment of the present invention also proposes a storage medium having a program generation program stored thereon, which when executed by a processor implements the steps of the program generation method as described above.
Since the storage medium adopts all technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and no further description is given here.
Further, referring to fig. 7, an embodiment of the present invention further provides a program generating apparatus, including:
the extraction module 10 is configured to, when a program development request is received, extract a development project identifier from the program development request.
It should be noted that the execution subject of this embodiment is an applet open platform on the program generation device, and the program generation device may be an electronic device such as a personal computer or a server, which is not limited in this embodiment. When receiving a program development request, the applet open platform extracts a development project identifier from the program development request. Before the applet opening platform receives a program development request, a developer may register an account in the applet opening platform to become a registered developer, and the registered developer may create an applet (which may be referred to as a cube in this embodiment) in the open platform.
Specifically, the developer needs to register an account number on the applet open platform to become a registered developer. The method comprises the steps that a registered developer needs to input contents such as an applet product name, an applet classification and applet related information, according to the contents such as the applet product name, the applet classification and the applet related information, a cube Id is created for the registered developer by an applet open platform, the cube Id can be a development project identifier, and when a program development request of the registered developer is received, the applet open platform extracts the development project identifier from the program development request to identify the identity of the registered developer.
And the template generating module 20 is configured to generate a to-be-developed program template through a preset development tool according to the development project identifier, where the to-be-developed program template supports a browser language code.
It is easy to understand that, after the step of extracting the development item identifier from the program development request when the program development request is received, the method may further include: acquiring a corresponding development tool data packet according to the development project identifier; and analyzing the development tool data packet to obtain a preset development tool. For example, the applet opening platform extracts a development project identifier from the program development request, identifies the identity of a registered developer, obtains a corresponding development tool data package, analyzes the development tool data package, and obtains a preset development tool, where the preset development tool may support a window, mac, and linux operating system, and the preset development tool may include two types, which are selectable from a command line tool and a graphical interface application program, and of course, the preset development tool may also be implemented by combining the two types. In addition, the preset development tool may be designed into other types according to actual situations, which is not limited in this embodiment.
Specifically, a to-be-developed program template is generated by a preset development tool according to the development project identifier, for example, a registered developer generates the to-be-developed program template by the obtained cube Id through the preset development tool according to the development project identifier, that is, an empty project can be created by the preset development tool according to the cube Id, where the initial directory structure of the empty project may include: cube, api, json and src/, wherein cube is cube configuration information and json format file; json is a cube network data interface configuration and json format file; and src/resource directories are applied to the cubes, and resources such as cube codes developed by registered developers can be placed under the directories. The registered developer generates a to-be-developed program template through a preset development tool according to the development project identifier, and in addition, the registered developer may also use a custom template, which is not limited in this embodiment.
It should be understood that the step of generating the to-be-developed program template through the preset development tool according to the development project identifier may include: determining a target development language according to the development project identifier; acquiring a target development language template from a browser language code template library of the preset development tool according to the target development language; and generating a program template to be developed according to the target development language template and the development project identifier.
Specifically, src/lower may also include src/cube.tpl, src/cube.css, src/cube.js, and src/assets may also include src/assets/launchymam.png; wherein src/cube.tpl is a cube front end HTML template; cs is a style of the front end cs of the cube; js is a cube front-end script and provides open JavaScript; src/assets are static resource directories such as pictures; png is the cube start map, which will be used as the occupied bitmap of the front-end interface request waiting phase. For example, determining a target development language as an HTML development language according to the development project identification; acquiring a cube front-end HTML template from a browser language code template library of the preset development tool according to an HTML development language; and generating a program template to be developed according to the cube front-end HTML template and the development project identifier.
And the adjusting module 30 is configured to, when receiving a program adjusting instruction, adjust the to-be-developed program template according to the program adjusting instruction to obtain an adjusted to-be-developed program template.
It should be noted that, when a program adjustment instruction is received, the step of adjusting the to-be-developed program template according to the program adjustment instruction to obtain an adjusted to-be-developed program template specifically includes: when a program adjusting instruction is received, code adjusting information corresponding to the program adjusting instruction is determined; judging whether the code adjustment information meets development constraint conditions or not; and when the code adjustment information accords with the development constraint condition, adjusting the program template to be developed according to the development constraint condition to obtain the adjusted program template to be developed.
Specifically, a registered developer carries out cube development and debugging, the development constraint conditions agreed by a development document are followed in the development process, the development constraint conditions are generated according to the constraint conditions agreed by the development document, and when a program adjustment instruction is received, code adjustment information corresponding to the program adjustment instruction input by the registered developer is determined; and judging whether the code adjustment information meets the development constraint condition, for example, the webpage programming adopts a combination of HTML + CSS + JavaScript, wherein HTML is used for describing the structure of the current page, CSS is used for describing the appearance of the page, and JavaScript is generally used for processing the interaction between the page and the user. Similarly, the same role is also played in the cube of the present embodiment, wherein tpl plays a role similar to HTML. Tpl, which is very similar to HTML, is opened src/cube, and consists of tags, attributes, etc. But there are also different places: in the general development flow of web pages, the DOM (tree generated corresponding to the description of HTML) is usually operated by JavaScript to cause some changes in the interface in response to the user's behavior. For example, when the user clicks a button, the JavaScript records some state into the JavaScript variable, and manipulates the properties or behaviors of the DOM through the DOMAPI, thereby causing an interface change. However, as the running project becomes larger and larger, the code is filled with a great deal of interface interaction logic and various state variables of the program, which is obviously not a good development mode, so that the development mode of the MVVM (for example, read, Vue. js) is proposed, and the rendering and logic separation is promoted. That is to say, in this embodiment, the JavaScript does not directly manipulate the DOM, and the JavaScript only needs to manage the state, and then describes the relationship between the state and the interface structure by using a template syntax.
And the target generation module 40 is configured to generate a corresponding target program according to the adjusted to-be-developed program template when receiving a program generation instruction.
It is easy to understand that, the step of generating the corresponding target program according to the adjusted to-be-developed program template when receiving the program generation instruction may include: when a program generating instruction is received, generating a program template to be issued according to the adjusted program template to be developed; sending the program template to be issued to the code compiling server so that the code compiling server compiles the program template to be issued; receiving a compiled program template to be issued fed back by the code compiling server; sending the compiled program template to be issued to the code hosting server so that the code hosting server can issue and preview the compiled program template to be issued; receiving a code identifier to be issued fed back by the code hosting server, and generating an address to be issued according to the code identifier to be issued; and obtaining a corresponding target program through the address to be issued.
Specifically, when a program adjusting instruction is received, the program template to be developed is adjusted according to the program adjusting instruction, wherein the adjustment of the program template to be developed comprises a testing part and a previewing part, the adjusted program template to be developed is obtained, namely after the testing part and the previewing part are completed, a registered developer can prepare to release a formal program template, the program template to be released is generated according to the adjusted program template to be developed, part of the flow of the program template to be released can be consistent with the previewing part, and a reviewing link is added to the latter half flow of the program template to be released.
It should be noted that, after the step of generating the corresponding target program according to the adjusted to-be-developed program template when the program generation instruction is received, the method further includes: sending the target program to a program auditing server so that the program auditing server can audit the target program; receiving an auditing result fed back by the program auditing server; and determining whether the target program is operated online according to the auditing result. For example, a registered developer can perform submission on a cube open platform, send the target program to a program auditing server, namely a cube auditing background, and wait for auditing in each link, wherein the cube auditing background can perform technical auditing, design auditing and operation auditing. If the audit is passed, the registered developer can operate the target program to run online on the cube open platform. If the verification is not passed, the registered developer needs to make adjustment according to the rejection reason and readjust the to-be-developed program template.
In this embodiment, the extracting module 10 is configured to, when a program development request is received, extract a development project identifier from the program development request; the template generating module 20 is configured to generate a to-be-developed program template through a preset development tool according to the development project identifier, where the to-be-developed program template supports a browser language code; the adjusting module 30 is configured to, when receiving a program adjusting instruction, adjust the to-be-developed program template according to the program adjusting instruction to obtain an adjusted to-be-developed program template; and the target generation module 40 is configured to generate a corresponding target program according to the adjusted to-be-developed program template when receiving a program generation instruction. By the method, the to-be-developed program template supporting the browser language code is generated according to the program development request of the developer, so that the developer can conveniently adjust the to-be-developed program template, the functions of providing program access, function opening and the like for the developer are realized, the development efficiency and the customization capability of a Web end product are greatly improved, and the technical problem that the existing open platform does not support the browser development language and cannot realize the development of Web small programs is solved.
Other embodiments or specific implementation manners of the program generating device according to the present invention may refer to the above method embodiments, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third and the like do not denote any order, but rather the words first, second and the like may be interpreted as indicating any order.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g., a Read Only Memory (ROM)/Random Access Memory (RAM), a magnetic disk, an optical disk), and includes several instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
The invention discloses A1 and a program generating method, wherein the program generating method comprises the following steps:
when a program development request is received, extracting a development project identifier from the program development request;
generating a program template to be developed through a preset development tool according to the development project identification, wherein the program template to be developed supports browser language codes;
when a program adjusting instruction is received, adjusting the program template to be developed according to the program adjusting instruction to obtain an adjusted program template to be developed;
and when a program generating instruction is received, generating a corresponding target program according to the adjusted to-be-developed program template.
A2, the program generating method according to a1, further comprising, after the step of extracting the development item identifier from the program development request when the program development request is received:
acquiring a corresponding development tool data packet according to the development project identifier;
and analyzing the development tool data packet to obtain a preset development tool.
A3, the program generating method according to a2, wherein the step of generating the to-be-developed program template by a preset development tool according to the development project identifier specifically includes:
determining a target development language according to the development project identifier;
acquiring a target development language template from a browser language code template library of the preset development tool according to the target development language;
and generating a program template to be developed according to the target development language template and the development project identifier.
A4, in the program generating method according to any one of a1-A3, wherein the step of adjusting the to-be-developed program template according to the program adjustment command when receiving the program adjustment command to obtain the adjusted to-be-developed program template specifically includes:
when a program adjusting instruction is received, code adjusting information corresponding to the program adjusting instruction is determined;
judging whether the code adjustment information meets development constraint conditions or not;
and when the code adjustment information accords with the development constraint condition, adjusting the program template to be developed according to the development constraint condition to obtain the adjusted program template to be developed.
A5, the program generating method according to a4, wherein the step of adjusting the to-be-developed program template according to the development constraint condition to obtain the adjusted to-be-developed program template specifically includes:
adjusting the program template to be developed according to the development constraint condition to generate a test program template and a preview program template;
testing the test program template to obtain a test result;
when the test result is that the test is passed, previewing the preview program template to obtain a preview result;
and generating an adjusted program template to be developed according to the preview result.
A6, the program generating method according to a5, wherein the step of adjusting the to-be-developed program template according to the development constraint condition to generate a test program template and a preview program template specifically includes:
adjusting the program template to be developed according to development constraint conditions to generate a test program template;
and integrating the test program template into a target webpage product template to generate a preview program template.
A7, the program generating method according to a5, wherein the step of testing the test program template to obtain the test result specifically includes:
sending the test program template to a code test server so that the code test server tests the test program template and feeds back a test address for representing a test result storage area;
and receiving a test address fed back by the code test server, and obtaining a test result according to the test address.
A8, the program generating method according to a5, wherein when the test result is that the test passes, the step of previewing the preview program template to obtain the preview result specifically includes:
when the test result is that the test is passed, the preview program template is sent to a code compiling server so that the code compiling server compiles the preview program template;
receiving a compiled preview program template fed back by the code compiling server;
sending the compiled preview program template to a code hosting server so that the code hosting server can preview the compiled preview program template;
receiving compiled code identification fed back by the code hosting server;
and generating a preview address according to the compiled code identifier, and obtaining a preview result through the preview address.
A9, the program generating method according to A8, wherein the step of sending the preview program template to a code compiling server so that the code compiling server compiles the preview program template specifically includes:
sending the preview program template to a code compiling server so that the code compiling server acquires preview code data corresponding to the preview program template;
receiving compiled preview code data fed back after the code compiling server compiles the preview code data;
and taking the compiled preview code data as a compiled preview program template.
A10, the program generating method according to A8, wherein the step of sending the compiled preview program template to a code hosting server so that the code hosting server previews the compiled preview program template specifically includes:
uploading the compiled preview code data packet to a code hosting server, and receiving an uploading result fed back by the code hosting server;
and when the uploading result is successful, receiving a compiled code identifier fed back by the code hosting server.
A11, in the program generating method according to any one of a1 to a10, the step of generating the corresponding target program according to the adjusted to-be-developed program template when receiving the program generating command specifically includes:
when a program generating instruction is received, generating a program template to be issued according to the adjusted program template to be developed;
sending the program template to be issued to a code compiling server so that the code compiling server compiles the program template to be issued;
receiving a compiled program template to be issued fed back by the code compiling server;
sending the compiled program template to be issued to a code hosting server so that the code hosting server can issue and preview the compiled program template to be issued;
receiving a code identifier to be issued fed back by the code hosting server, and generating an address to be issued according to the code identifier to be issued;
and obtaining a corresponding target program through the address to be issued.
A12, the program generating method according to a11, further comprising, after the step of generating the corresponding target program according to the adjusted to-be-developed program template when receiving the program generating instruction:
sending the target program to a program auditing server so that the program auditing server can audit the target program;
receiving an auditing result fed back by the program auditing server;
and determining whether the target program is operated online according to the auditing result.
The present invention also discloses B13, a program generating device, comprising:
the extraction module is used for extracting a development project identifier from a program development request when the program development request is received;
the template generation module is used for generating a program template to be developed through a preset development tool according to the development project identification, and the program template to be developed supports browser language codes;
the adjusting module is used for adjusting the program template to be developed according to the program adjusting instruction when the program adjusting instruction is received, and obtaining the adjusted program template to be developed;
and the target generation module is used for generating a corresponding target program according to the adjusted to-be-developed program template when a program generation instruction is received.
B14, the program generating device according to B13, the extracting module is further used for obtaining the corresponding development tool data package according to the development project identification;
the extraction module is further used for analyzing the development tool data packet to obtain a preset development tool.
B15, the program generating device as described in B14, the template generating module further used for determining a target development language according to the development project identification;
the template generating module is further used for acquiring a target development language template from a browser language code template library of the preset development tool according to the target development language;
the template generating module is also used for generating a program template to be developed according to the target development language template and the development project identification.
The program generating apparatus according to any one of B16 and B13-B15, wherein the adjusting module is further configured to determine, when receiving a program adjusting instruction, code adjusting information corresponding to the program adjusting instruction;
the adjusting module is also used for judging whether the code adjusting information meets the development constraint condition;
and the adjusting module is also used for adjusting the program template to be developed according to the development constraint condition when the code adjusting information accords with the development constraint condition to obtain the adjusted program template to be developed.
The program generating device of B17, the adjusting module, as described in B16, is further configured to adjust the to-be-developed program template according to the development constraint condition, so as to generate a test program template and a preview program template;
the adjusting module is also used for testing the test program template to obtain a test result;
the adjusting module is further configured to preview the preview program template to obtain a preview result when the test result is that the test passes;
and the adjusting module is also used for generating an adjusted program template to be developed according to the preview result.
B18, the program generating device according to B17, the adjusting module is further used for adjusting the program template to be developed according to the development constraint condition to generate a test program template;
the adjusting module is further used for integrating the test program template into a target webpage product template to generate a preview program template.

Claims (10)

1. A program generating method, characterized by comprising the steps of:
when a program development request is received, extracting a development project identifier from the program development request;
generating a program template to be developed through a preset development tool according to the development project identification, wherein the program template to be developed supports browser language codes;
when a program adjusting instruction is received, adjusting the program template to be developed according to the program adjusting instruction to obtain an adjusted program template to be developed;
and when a program generating instruction is received, generating a corresponding target program according to the adjusted to-be-developed program template.
2. The program generation method of claim 1, wherein after the step of extracting the development item identification from the program development request upon receiving the program development request, further comprising:
acquiring a corresponding development tool data packet according to the development project identifier;
and analyzing the development tool data packet to obtain a preset development tool.
3. The program generating method according to claim 2, wherein the step of generating the to-be-developed program template by using a preset development tool according to the development project identifier specifically includes:
determining a target development language according to the development project identifier;
acquiring a target development language template from a browser language code template library of the preset development tool according to the target development language;
and generating a program template to be developed according to the target development language template and the development project identifier.
4. The program generating method according to any one of claims 1 to 3, wherein the step of adjusting the to-be-developed program template according to the program adjustment instruction when receiving the program adjustment instruction to obtain the adjusted to-be-developed program template specifically includes:
when a program adjusting instruction is received, code adjusting information corresponding to the program adjusting instruction is determined;
judging whether the code adjustment information meets development constraint conditions or not;
and when the code adjustment information accords with the development constraint condition, adjusting the program template to be developed according to the development constraint condition to obtain the adjusted program template to be developed.
5. The program generating method according to claim 4, wherein the step of adjusting the to-be-developed program template according to the development constraint condition to obtain the adjusted to-be-developed program template specifically includes:
adjusting the program template to be developed according to the development constraint condition to generate a test program template and a preview program template;
testing the test program template to obtain a test result;
when the test result is that the test is passed, previewing the preview program template to obtain a preview result;
and generating an adjusted program template to be developed according to the preview result.
6. The program generating method according to claim 5, wherein the step of adjusting the to-be-developed program template according to the development constraint condition to generate a test program template and a preview program template specifically includes:
adjusting the program template to be developed according to development constraint conditions to generate a test program template;
and integrating the test program template into a target webpage product template to generate a preview program template.
7. The program generating method according to claim 5, wherein the step of testing the test program template to obtain the test result specifically includes:
sending the test program template to a code test server so that the code test server tests the test program template and feeds back a test address for representing a test result storage area;
and receiving a test address fed back by the code test server, and obtaining a test result according to the test address.
8. A program generating apparatus, characterized by comprising:
the extraction module is used for extracting a development project identifier from a program development request when the program development request is received;
the template generation module is used for generating a program template to be developed through a preset development tool according to the development project identification, and the program template to be developed supports browser language codes;
the adjusting module is used for adjusting the program template to be developed according to the program adjusting instruction when the program adjusting instruction is received, and obtaining the adjusted program template to be developed;
and the target generation module is used for generating a corresponding target program according to the adjusted to-be-developed program template when a program generation instruction is received.
9. A program generating apparatus characterized by comprising: memory, a processor and a program generating program stored on the memory and executable on the processor, which program generating program, when executed by the processor, carries out the steps of the program generating method according to any one of claims 1 to 7.
10. A storage medium characterized in that a program generation program is stored thereon, which when executed by a processor implements the steps of the program generation method according to any one of claims 1 to 7.
CN202010677925.5A 2020-07-14 2020-07-14 Program generation method, device, equipment and storage medium Pending CN113934412A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010677925.5A CN113934412A (en) 2020-07-14 2020-07-14 Program generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010677925.5A CN113934412A (en) 2020-07-14 2020-07-14 Program generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113934412A true CN113934412A (en) 2022-01-14

Family

ID=79273909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010677925.5A Pending CN113934412A (en) 2020-07-14 2020-07-14 Program generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113934412A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115357252A (en) * 2022-10-08 2022-11-18 成都数联云算科技有限公司 Source code file generation method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115357252A (en) * 2022-10-08 2022-11-18 成都数联云算科技有限公司 Source code file generation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US8584114B2 (en) Method of generating and distributing a computer application
CN110806863A (en) Interface document generation method and device, electronic equipment and storage medium
US7529763B2 (en) System and method for providing dynamic client architecture in an application development environment
CN110955409B (en) Method and device for creating resources on cloud platform
CN110780868A (en) Website development method, device, equipment and storage medium based on componentized template
CN113741898B (en) Form generation method, device and equipment
CN111880813B (en) Method for realizing android card UI (user interface) and storage medium
CN114564203A (en) Service operation method and device, electronic equipment and readable medium
CN114036439A (en) Website building method, device, medium and electronic equipment
CN112685105A (en) Front-end component sharing method and device, computer equipment and storage medium
CN113704110A (en) Automatic testing method and device for user interface
CN113095056B (en) Generation method, processing method, device, electronic equipment and medium
US11604662B2 (en) System and method for accelerating modernization of user interfaces in a computing environment
CN110020370B (en) Method and device for realizing animation in client application and framework of animation script
CN113934412A (en) Program generation method, device, equipment and storage medium
CN107239265B (en) Binding method and device of Java function and C function
CN111736812A (en) Document code execution method and device, computer equipment and storage medium
CN111679828A (en) Data processing method and device, electronic equipment and storage medium
Penberthy Beginning ASP. NET for Visual Studio 2015
CN116841543A (en) Development method for dynamically generating cross-platform multi-terminal application based on Flutter
CN113641594B (en) Cross-terminal automatic testing method and related device
JP7014960B2 (en) Information processing equipment, servers, their processing methods and programs
JP7029557B1 (en) Judgment device, judgment method and judgment program
CN111427770B (en) Resource testing method and related equipment
CN113835803A (en) Application theme display method and device

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