Self-development system and method for low-code platform and electronic equipment
By integrating self-development systems on low-code platforms, using Monorepo management architecture and scaffolding technology, the problem that low-code platform self-development cannot meet user needs is solved, the front-end self-development capabilities and online editing functions are realized, and the development efficiency is improved .
Patent Information
- Application Number
- CN202410861844.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-11-01
Smart Images

Figure CN118885157A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of software development technology, and in particular to a self-developed system, method and electronic device for a low-code platform. Background Art
[0002] In the current software development field, low-code platforms are gradually being widely used. Low-code platforms are development tools that can quickly generate applications. They are development platforms that can quickly generate new applications with little or no code. They allow developers to design application interfaces and associate backend data by visually dragging and dropping components without having to manually write a lot of code.
[0003] However, when using low-code platforms for self-development, the components and pages provided by the low-code platforms cannot meet user needs, resulting in the low-code platforms being unable to support self-development, which brings inconvenience to subsequent online code editing and online debugging. Summary of the invention
[0004] In view of the shortcomings of the prior art mentioned above, the present application discloses a self-developed system, method and electronic device for a low-code platform, which are used to overcome the problem that the low-code platform cannot be self-developed.
[0005] The first aspect of the present application discloses a self-developed system for a low-code platform, comprising: a front-end, which is created based on a Monorepo management architecture, and extracts business codes and common components in the front-end, and constructs a platform management end, an application mobile end, and an application Web end in the front-end according to the business code; a dependency package, which is arranged in the front-end and is used to store the common components and self-developed templates, and the self-developed template integrates a scaffolding, and responds to development instructions from the application mobile end or the application Web end, and customizes the configuration template through the scaffolding. The scaffolding determines whether to call the common components for development management according to the business type of the development instruction to complete the custom configuration of the template, and generates a self-developed package for replacing the data at the placeholder position in the self-developed system; a back-end, which parses the self-developed package, determines a description file that pre-replaces the placeholder position in the code file, replaces the placeholder position with the description file to form a self-developed application, and publishes it.
[0006] In certain embodiments of the first aspect of the present application, the self-developed template includes a visual interface that displays a framework page of the template, and the visual interface layouts multiple business controls in the presented graphical interface, and the multiple business controls are public component controls, public methods, development templates, command line tools, naming controls, new controls and installation controls, and each of the business controls is combined by dragging and dropping to form the business process logic of the self-developed template; the public component control is used to call the public component stored in the dependent package to build the template; the public method is used to configure the business process called by each of the public components; the development template is used to store templates of various styles; A command line tool is used to initialize the local environment, parse the input instructions, call the newly created control to develop components according to the parsing results, and generate a compressed file; the naming control is used to receive the naming parameters of the self-developed package, copy the code file corresponding to the self-developed package to the local template, and replace the naming parameters with the placeholders in the template; the installation control is used to receive the dependent package from the warehouse, search for the installation path according to the directory, and install the dependent package according to the installation path; the new control is used to compile and package the self-developed package of the corresponding directory file according to the received naming, generate a packaged file and compress it, and wait for the compressed file to be uploaded.
[0007] In certain embodiments of the first aspect of the present application, the self-developed package includes a style file, a self-developed package description file, a static resource file and a directly interpreted script file, wherein the self-developed package description file is embedded with a local development entry, an online access address, a packaged file address to be copied, a self-developed component and a routing address corresponding to the local development, and the static resource file stores images and fonts of the template.
[0008] In certain embodiments of the first aspect of the present application, the application mobile terminal and the application Web terminal respectively embed a custom loading mechanism in the entry file, and the custom loading mechanism has a placeholder preset in the code file so that when the backend publishes the application, it replaces the application with the description file in the self-developed package through the placeholder.
[0009] In certain embodiments of the first aspect of the present application, the platform management end, the application mobile end and the application Web end are respectively provided with front-end controls, and the front-end controls include a first management end component, a data resource control, a database control and a routing permission control; the back end is provided with back-end controls, and the back-end controls include a flowchart component, a packaging configuration, an event engine, a formula engine, a page engine, a second management end component, a controller, a Widget and an Element-ui.
[0010] In certain embodiments of the first aspect of the present application, the first management-end component manages the database control according to the API type, and establishes a mapping relationship between the API and the components in the database control, wherein, based on the API type, relevant components are configured from the database control; based on a preset operation model, the API type and the relevant components are coupled and operated, and the coupling results are decoupled through a preset programming model to obtain a decoupling result, and a mapping relationship is established based on the decoupling result.
[0011] In certain embodiments of the first aspect of the present application, the second management-end component receives corresponding drag signals of each of the back-end controls, combines business processes and configures business attributes, so that the controller responds according to the business processes and business attributes.
[0012] In certain embodiments of the first aspect of the present application, the self-developed system is integrated on the low-code platform, and the low-code platform includes a visualization module, a business construction module and a process engine module, wherein the visualization module includes a graphical interface, business controls and a process editor, and the graphical interface is used to layout the business controls and the process editor; the process editor combines the business controls by dragging and dropping to form business process logic; the business construction module is used to dynamically execute the properties and configurations of the visualization module and write code on the visualization module; the process engine module is used to drive the visualization module to respond according to the business process.
[0013] The second aspect of the present application discloses a self-developed system for a low-code platform, including: creating a front-end based on the Monorepo management architecture, extracting the business code and public components in the front-end, and building a platform management end, an application mobile end, and an application Web end in the front-end according to the business code; laying out the dependent packages in the front-end to store the public components and the self-developed templates, and the self-developed templates integrate scaffolding, responding to development instructions from the application mobile end or the application Web end, downloading the scaffolding and customizing the configuration template through the scaffolding, initializing the local environment, and determining whether to call the public components for development management according to the business type of the development instructions to complete the development. The self-developed package is generated by packaging the self-developed package through the command tool line to replace the data at the placeholder position in the self-developed system; the type of the self-developed package is determined, and if the self-developed package type is a page, a self-developed page is created, and a name is entered in the self-developed page to match the corresponding self-developed resource package to determine the self-developed package; if the self-developed package type is a component, the self-developed component and the common component are dragged into the page editor to configure and complete the self-developed package of the component; the self-developed package is parsed by using the back end to determine the description file for pre-replacing the placeholder position in the code file, the placeholder position is replaced with the description file to form a self-developed application, and then it is published.
[0014] The third aspect of the present application discloses an electronic device, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device executes the above method.
[0015] The beneficial effects of the present application are as follows: by integrating a self-developed system on a low-code platform, creating a front end based on the Monorepo management architecture, constructing a platform management end, an application mobile end and an application Web end respectively on the front end, and responding to development instructions from the application mobile end or the application Web end, a template is customized through a scaffolding, and the scaffolding determines whether to call the common component for development management according to the business type of the development instruction to complete the customized configuration of the template, and generates a self-developed package for replacing the data at the location of the placeholder in the self-developed system, so that the back end replaces the description file content in the self-developed package through the placeholder, enabling the front end to load directly. In this way, not only does the front end support local debugging, but it can also realize self-development according to user needs, and it is also beneficial for the front end to realize online code editing and online debugging, and also improves the system development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a schematic diagram of a system architecture for implementing a self-developed system for a low-code platform in an embodiment of the present invention;
[0017] Figure 2 It is a structural block diagram of a self-developed system for a low-code platform in an embodiment of the present invention;
[0018] Figure 3 It is a principle block diagram of a self-developed system for a low-code platform in an embodiment of the present invention;
[0019] Figure 4 This is a self-developed template interface diagram in a self-developed system for a low-code platform in an embodiment of the present invention;
[0020] Figure 5 It is a schematic diagram of the composition of a self-developed template in a self-developed system for a low-code platform in an embodiment of the present invention;
[0021] Figure 6 It is a self-developed package editing diagram in a self-developed system for a low-code platform in an embodiment of the present invention;
[0022] Figure 7 It is a self-developed resource setting diagram in a self-developed system for a low-code platform in an embodiment of the present invention;
[0023] Figure 8 It is a self-developed page information setting diagram in a self-developed system for a low-code platform in an embodiment of the present invention;
[0024] Fig. 9 It is a self-developed component setting diagram in a self-developed system for a low-code platform in an embodiment of the present invention;
[0025] Fig.10 This is a flow chart of a method for self-development of a low-code platform in an embodiment of the present invention;
[0026] Fig.11 This is a complete flow chart of a method for self-development of a low-code platform in an embodiment of the present invention;
[0027] Fig.12 It is a structural schematic diagram of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION
[0028] The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and sub-samples in the embodiments can be combined with each other without conflict.
[0029] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0030] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.
[0031] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so as to describe the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0032] Unless otherwise stated, the term "plurality" means two or more.
[0033] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0034] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0035] Combination Figure 1 As shown, an embodiment of the present disclosure provides a system architecture diagram for implementing a self-developed system for a low-code platform, including a user side and a server side, wherein the user side and the server side are connected to a network and communicate with each other. In this application, the user side is the front end and the server side is the back end, which will not be repeated.
[0036] The embodiment of the present application provides a self-developed system for a low-code platform, which can be applied to a terminal or a server, or can be software running in a terminal or a server. In some embodiments, the terminal can be at least one of a computer device, a desktop device, a smart phone, and a tablet device; the server can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, and big data and artificial intelligence platforms; the software can be an application generated by a firmware program upgrade, etc., but is not limited to the above forms.
[0037] For example, see Figure 1 , is an implementation environment diagram of a vehicle energy consumption management system provided by this application. The self-developed system used for the low-code platform in this application is exemplarily as follows: Figure 1 As shown, the execution body of the system provided in the embodiment of the present application is mainly arranged on the user side, and the user side responds to the user's self-developed system on the low-code platform.
[0038] Combination Figure 2 As shown, the embodiment of the present disclosure provides a self-developed system structure block diagram for a low-code platform, including:
[0039] The front end 1 is created based on the Monorepo management architecture, and the business code and public components in the front end are extracted. According to the business code, the platform management end 12, the application mobile end 13 and the application Web end 14 are respectively constructed in the front end;
[0040] Among them, the Monorepo architecture, also known as the single repository architecture, is a code management strategy in software development. Its core feature is to store multiple related projects or components in the same code repository, which facilitates the reuse and version control of common components. It has the advantages of unified workflow, code sharing and centralized version control.
[0041] It should be noted that the front end is the user end, that is, the front end project can be divided into a platform management end 12, an application mobile end 13 and an application Web end 14.
[0042] The dependency package 11 is arranged in the front end and used to store the common components and the self-developed template 110, and the self-developed template 110 integrates the scaffold 1101, responds to the development instruction from the mobile terminal of the application or the web terminal of the application, and customizes the configuration template through the scaffold. The scaffold 1101 determines whether to call the common components for development management according to the business type of the development instruction to complete the custom configuration of the template, and generates a self-developed package for replacing the data at the location of the placeholder in the self-developed system;
[0043] Specifically, the self-developed template integrates scaffolding for quickly generating and configuring the front-end code structure. When a development instruction is detected from the mobile application or the Web application, the scaffolding decides whether to call public components for development management based on the business type of the development instruction. That is, some development instructions do not need to call public components for direct development management, while some development instructions need to call public components for development management in order to complete the template custom configuration.
[0044] It should be noted that when customizing configuration and generating self-developed packages, the scaffolding generates a self-developed package for replacing the data at the location of the placeholder in the self-developed system according to the development instructions and business type. The placeholder is used to identify the part that needs to be replaced in the back-end processing (such as API address, environment variables, etc.). It should be noted here that the placeholder is preset in the self-developed system in advance.
[0045] Backend 2 parses the self-developed package, determines the description file that pre-replaces the placeholder position in the code file, replaces the placeholder position with the description file to form a self-developed application, and publishes it.
[0046] Specifically, the backend receives the self-developed package, parses the code files therein, determines the location of the placeholders, replaces the placeholder contents in the description file as needed, generates a complete self-developed application, and publishes the application to the corresponding platform or environment for direct loading by the frontend.
[0047] It should be noted that, first, this application improves code reuse rate and reduces duplicate development through common components; second, by embedding self-developed templates and scaffolding, it can quickly generate and configure the front-end code structure to improve development efficiency; third, flexible configuration and deployment are achieved through placeholders, and then, the correctness and completeness of the application are ensured through back-end parsing processing. Finally, the application can be published to different platforms or environments according to needs.
[0048] In this embodiment, a self-developed system is integrated into a low-code platform, a front end is created based on a Monorepo management architecture, and a platform management end, an application mobile end, and an application Web end are respectively constructed on the front end. In response to development instructions from the application mobile end or the application Web end, a template is customized through a scaffolding, and the scaffolding determines whether to call the common component for development management according to the business type of the development instruction to complete the customized configuration of the template, and generates a self-developed package for replacing the data at the location of the placeholder in the self-developed system. The self-developed package carries the data that can be used for replacement, so that the back end replaces the description file content in the self-developed package through the placeholder, enabling the front end to load directly. In this way, not only does the front end support local debugging, but it can also realize self-development according to user needs, and it is also beneficial for the front end to realize online code editing and online debugging, thereby improving system development efficiency.
[0049] In some embodiments, see Figure 3 , is a principle block diagram of a self-developed system for a low-code platform in an embodiment of the present invention. The overall front-end architecture uses a Monorepo architecture, extracts business codes and public components, and the business codes are divided into App-admin, App-Web, and App-h5, which are the platform management end, the application Web end, and the application mobile end, respectively. The public components are in the Packages (dependent packages) directory, which includes the extracted public components and methods, and the command line tools are also included. All packages in this directory are sent to the Npm warehouse through Npm (Node Package Manager, a NodeJS package management and distribution tool) for developers to download.
[0050] The platform management terminal, the application mobile terminal and the application Web terminal are respectively provided with front-end controls, and the front-end controls include a first management terminal component (i.e. Figure 3 The management end component in the front-end control), data resource control, database control and routing permission control; the back-end is provided with back-end controls, and the back-end controls include flowchart components, packaging configuration, event engine, formula engine, page engine, second management end component (i.e. Figure 3 Management components in the middle and back-end controls), controllers, widgets and element-ui.
[0051] For example, a widget is a visual component or tool used to display specific functions or information in a graphical user interface. It is a feature-rich and widely used component that plays different roles in different programming languages and development frameworks, but its core function is to provide users with an intuitive and interactive interface experience. Another example is Element-ui, a desktop component library based on Vue.js 2.0. It provides a rich, high-quality, and easy-to-use set of UI components designed to help developers quickly build beautiful, easy-to-use web interfaces.
[0052] In some embodiments, both the front-end control and the back-end control are components, and the first management-end component manages the database control according to the API type, and establishes a mapping relationship between the API and the components in the database control, wherein, based on the API type, relevant components are configured from the database control; based on a preset operation model, the API type and relevant components are coupled and operated, and the coupling results are decoupled through a preset programming model to obtain a decoupling result, and a mapping relationship is established based on the decoupling result.
[0053] For example, API (Application Programming Interface) is an interface used for communication between different software applications. API types can refer to HTTP API, RESTful API, GraphQL API, etc. Each type has its specific usage scenarios and advantages. Database controls refer to user interface components used to manage and operate databases, such as data tables, query builders, forms, etc.
[0054] It should be understood that the first management end component determines which database controls are needed to support the API function according to the API type. For example, if the API is used to read data, then a data table or query builder component is required. Based on the API type, the relevant components are selected and configured from the database controls. The relevant components include but are not limited to setting the properties, parameters, event handlers, etc. of the components to ensure that they can interact with the API correctly.
[0055] Use a preset operation model (such as a certain middleware or framework) to couple the API type with related components for operation, so that when the API is called, the related database control component will be activated and perform the corresponding operation.
[0056] After the coupling operation, some intermediate results or states will be generated. These results or states contain the association information between the API call and the database control operation. Through a preset programming model (such as a design pattern or algorithm), these coupling results are decoupled to separate independent and manageable parts. Based on the decoupling results, a mapping relationship between the API and the components in the database control is established. This mapping relationship describes how the API interacts with specific database control components, as well as the data flow and dependencies between them.
[0057] Once the mapping relationship is established, the interaction between the API and the database controls can be managed and maintained through the relationship. This helps ensure the correctness and efficiency of the API calls, while also simplifying the management and maintenance of the database controls.
[0058] The above method is very useful in building complex Web applications or enterprise-level applications, because the system can improve the maintainability, scalability and reusability of the system. At the same time, it can also reduce development costs and improve development efficiency.
[0059] In some embodiments, the second management-end component receives the corresponding drag and drop signals of each of the back-end controls, combines the business process and configures the business attributes, so that the controller responds according to the business process and the business attributes.
[0060] When users interact with back-end controls (such as drag buttons, sliders, switches, etc.) through buttons or controls in the front-end interface, these controls will generate corresponding signals, which include but are not limited to information such as control state changes and user intentions.
[0061] The second management end component is responsible for monitoring and receiving the drag and drop signals from the back-end control, for example, transmitting them to the second management end component through event monitoring, callback functions, etc.
[0062] After receiving the signal, the second management component first parses the signal to identify the operation or intention that the user or system wants to perform; then, based on the analysis results, it identifies the business processes related to these operations or intentions. The business process may be a series of predefined tasks or activities performed in a specific order, which together implement a certain business function.
[0063] According to the parsed user intention and business process, the second management end component combines these business processes, including but not limited to selecting appropriate business processes, determining the execution order between them, setting conditional branches, etc. The combined business process should be able to fully realize the user's intention and meet business requirements and constraints.
[0064] In the process of combining business processes, the second management end component also needs to configure business attributes, which refer to various parameters, settings, rules, etc. related to business processes, which determine the specific execution mode and behavior of business processes. For example, configuring business attributes includes but is not limited to setting input parameters, specifying output formats, defining data validation rules, configuring permissions and security settings, etc.
[0065] Once the business process and business attribute configuration is completed, the second management-end component will notify the controller (one or more back-end services or middleware) of this information. The controller will perform corresponding operations and tasks in the specified manner and sequence based on the received business process and business attribute information to achieve the user's intentions and business functions.
[0066] During the execution of the business process, the second management end component needs to monitor the execution status, record logs, handle exceptions, etc. At the same time, it also needs to feedback the execution results or status information to the user or other parts of the system.
[0067] Through the monitoring and feedback mechanism, the correct execution and timely response of business processes can be ensured, and the stability and availability of the system can be improved.
[0068] Through the above method, the system is more flexible and customizable based on dragging and dropping signals and configuring business attributes of business processes. Users or developers can quickly build and configure business processes according to actual needs without writing a lot of code or performing complex configuration work. At the same time, this method also reduces the maintenance cost and risk of the system and improves the scalability and maintainability of the system.
[0069] In some embodiments, see Figure 4 , is a self-developed template interface diagram in a self-developed system for a low-code platform in an embodiment of the present invention, and is described in detail as follows:
[0070] The self-developed template includes a visual interface that displays a framework page of the template. The visual interface layouts multiple business controls in the presented graphical interface. The multiple business controls are respectively common component controls, common methods, development templates, command line tools, naming controls, new controls and installation controls. The business controls are combined by dragging and dropping to form the business process logic of the self-developed template.
[0071] The common component control is used to call the common component stored in the dependent package to build the template;
[0072] The public method is used to configure the business process called by each of the public components;
[0073] The development template is used to store templates of various styles;
[0074] The command line tool is used to initialize the local environment, parse the input instructions, call the newly created control to develop components according to the parsing results, and generate a compressed file;
[0075] The naming control is used to receive the naming parameters of the self-developed package, copy the code file corresponding to the self-developed package to the local template, and replace the naming parameters with the placeholders in the template;
[0076] The installation control is used to receive the dependent package from the warehouse, search for the installation path according to the directory, and install the dependent package according to the installation path;
[0077] The newly created control is used to compile and package the self-developed package of the corresponding directory file according to the received name, generate a packaged file and compress it, and wait for the compressed file to be uploaded.
[0078] It should be understood that the visualization interface provides a graphical interface for laying out and combining multiple business controls.
[0079] The common component control allows users to call common components stored in dependent packages to build templates. These common components can be pre-defined, reusable code snippets or modules.
[0080] Public methods are used to configure the business processes called by various public components. Users can define business processes by setting parameters, selecting the calling order, etc.
[0081] Development templates store templates of various styles for users to choose and use as the basis for development, so as to quickly build new self-developed templates.
[0082] The command line tool provides a command line interface for initializing the local development environment, parsing the instructions entered by the user, and calling other controls (such as new controls) for subsequent operations based on the parsing results. For example, users can generate compressed files by entering instructions through the command line tool.
[0083] The naming control receives the naming parameters specified by the user for the self-developed package, then copies the code file corresponding to the self-developed package to the local template, and replaces the placeholders in the template with the naming parameters. In this way, the user can name the generated code package as needed and quickly apply it to the template.
[0084] Install the control, receive the dependency packages from the specified repository, find the installation path according to the directory structure, and install these dependency packages according to the installation path. This ensures that the required dependencies in the development environment can be correctly installed and configured.
[0085] Create a new control: According to the naming parameters entered by the user, open the self-developed package in the corresponding directory for compilation and packaging. After the compilation and packaging is completed, generate a package file and compress it, waiting for the user to upload the compressed file.
[0086] Users can use a mouse or other input device to drag and drop various business controls in the visual interface, place them in appropriate locations, and establish logical relationships between them through connecting lines, etc. In this way, users can intuitively build complex business process logic.
[0087] Users combine and configure business controls to form the business process logic of self-developed templates. This logic defines the process and sequence of a series of operations, including initializing the development environment, installing dependent packages, compiling and packaging codes, and generating compressed files. Users can customize these operations as needed to meet specific development needs.
[0088] Through the above method, users can create and manage self-developed templates more conveniently, improving development efficiency and code quality; at the same time, due to the use of a visual interface and drag-and-drop operation, the entire process is more intuitive and easy to use.
[0089] In this embodiment, the self-developed template is modified based on App-Web. All public components are introduced in package.json. {{moduleName}} in the template is used as a placeholder for the package name. The main directory of the template is as follows:
[0090] package.json front-end general description file
[0091] vue.config.js vue-cli general configuration file
[0092] src provides external framework pages required by local projects
[0093] src / custom self-developed code location
[0094] init: accepts a name parameter, which represents the name of the current self-developed package. It uses the node script to copy the self-developed template to the local computer and replaces the passed name with {{moduleName}}
[0095] install: execute Npminstall –registry=http: / / geega.com in the current directory to install dependencies, mainly to adjust the remote warehouse
[0096] build: Package self-developed products, receive a name, package the files under src / custom / name through vue-cli, compress them into zip through node's zip-local module and wait for upload.
[0097] See also Figure 5 , is a schematic diagram of the composition of a self-developed template in a self-developed system for a low-code platform in an embodiment of the present invention, the self-developed package includes a style file, a self-developed package description file, a static resource file and a directly interpreted script file, wherein the self-developed package description file is embedded with a local development entry, an online access address, a packaged file address to be copied, a self-developed component and a routing address corresponding to the local development, and the static resource file stores pictures and fonts of the template.
[0098] The style file defines the visual style and layout of the template, and usually includes style sheet files such as CSS, SCSS, and LESS, which are used to describe the appearance and layout of HTML elements. The self-developed package description file provides metadata and configuration information about the self-developed package.
[0099] The local development entry specifies the entry point for starting the application during local development, such as a specific HTML file or script.
[0100] For example, the online access address provides the access URL of the application after it is deployed to the online environment.
[0101] For example, the file address to be copied during packaging lists the paths of files or directories that need to be copied and included during the packaging process.
[0102] For example, Self-Developed Components lists the details of custom components or modules included in the self-developed package.
[0103] For example, the routing address corresponding to local development defines the routing rules applied in the local development environment and is used to navigate to different pages or views.
[0104] Static resource files are used to store resource files that do not change frequently or do not need to be compiled. Images are used for image elements in templates, such as background images, icons, button images, etc. Fonts are used for custom font files, such as TTF, WOFF, EOT and other formats, to use specific font styles in templates.
[0105] A translated script file contains script code that can be directly executed in the browser. Usually it is a JavaScript file, which is used to implement dynamic interactive functions of templates, data processing, page logic, etc.
[0106] In this embodiment, when a user performs custom development based on a template, a self-developed package is created, which includes user-defined styles, scripts, static resources, and related configuration information. Then, the user combines these customized contents into the template through a graphical interface or other means to form the final application. During the development process, the user can use the local development portal to quickly start the application for debugging and testing. Once the development is completed, the application is packaged into a compressed file and deployed to the online environment for user access and use.
[0107] In some embodiments, the application mobile terminal and the application web terminal respectively embed a custom loading mechanism in the entry file, and the custom loading mechanism has a placeholder preset in the code file so that when the backend publishes the application, it replaces the application with the description file in the self-developed package through the placeholder.
[0108] It should be understood that a custom loading mechanism is a program logic executed when the application starts or initializes, which is responsible for loading and configuring the resources, modules, and settings required by the application. In this scenario, it is particularly used to handle the integration of self-developed packages. Placeholders are one or more pre-defined tags in the code file, which are used to be replaced with actual values or content in subsequent processing.
[0109] Since the mobile application and the web application have embedded custom loading mechanisms in their respective entry files, these entry files are usually the starting point of the application, responsible for the initialization of the application and the main process control.
[0110] For example, on the mobile side of the application, in the entry file of the mobile application (such as AppDelegate.m, MainActivity.java or the corresponding startup script), the custom loading mechanism will check and load the configuration and resources related to the self-developed package, read the predefined placeholders when the application starts, and load the corresponding description files from the self-developed package according to these placeholders.
[0111] For example, on the web side of the application, in the entry file of the web application (such as index.html, main.js or the corresponding startup script), the custom loading mechanism works in a similar way, finding and replacing placeholders when the page is loaded. These placeholders point to the description files provided in the self-developed package.
[0112] The application code reserves space for backend replacement
[0113] In this embodiment, the custom-load file is introduced in the entry file of App-Web and App-h5. The file contains a placeholder for the backend to replace when publishing the application. The backend will replace it with the description file content in the self-developed package selected by the user in the application settings.
[0114] Before release
[0115] const customList=['__CUSTOM_CONFIG__']
[0116] After release
[0117]
[0118] In actual applications, the front end traverses custimeList and loads js and css through outputName in turn, and sets the component name exposed by the js to the name corresponding to name.
[0119] Finally, the related self-developed components are displayed. For example, when the user configures a self-developed component, he enters the self-developed name. Here, the name needs to be consistent with the name in the self-developed package description file, because the front-end has registered the component of the name through the content replaced by the back-end in the entry file, and it can be used directly according to the configured name.<component:is=”name” / > .
[0120] In other embodiments, the self-developed system is integrated on the low-code platform, and the low-code platform includes a visualization module, a business construction module and a process engine module, wherein the visualization module includes a graphical interface, business controls and a process editor, and the graphical interface is used to layout the business controls and the process editor; the process editor combines the business controls by dragging and dropping to form business process logic; the business construction module is used to dynamically execute the properties and configurations of the visualization module and write code on the visualization module; the process engine module is used to drive the visualization module to respond according to the business process.
[0121] It should be noted that a low-code platform is a software development tool that allows developers to create applications through a graphical interface and pre-built modules without traditional manual programming. The platform is suitable for rapid prototyping, iterative development, and application development involving business users.
[0122] A graphical interface provides an intuitive interface for laying out and designing the appearance of an application. Developers create the application's user interface by dragging and placing various elements (such as buttons, text boxes, pictures, etc.).
[0123] Business controls are pre-built, reusable user interface elements that encapsulate common business logic and interactive behaviors. By adding business controls to the graphical interface, the workload of writing repetitive code is reduced.
[0124] The process editor allows developers to combine business controls by dragging and dropping to form complex business process logic. This visual approach enables developers to intuitively understand and edit business processes without having to deeply understand the underlying programming logic.
[0125] The business construction module is responsible for dynamically executing the properties and configurations of the visualization module and writing the code defined on the visualization module. The main functions of this module include: parsing and loading, parsing the properties and configurations defined in the visualization module, loading the necessary business controls and process logic. Dynamic execution, dynamically executing the code and business logic on the visualization module according to user interaction and business needs. Data binding, binding the business controls to the data source to achieve real-time update and display of data.
[0126] The process engine module is the core component used to drive business processes in the low-code platform. Its main functions include: process parsing, parsing the business process defined in the process editor and converting it into an executable process instance. Process execution, according to the definition of the process instance, drives the visualization module to respond according to the business process. For example, triggering the interactive behavior of business controls, performing data validation and conversion, calling external services, etc. Process monitoring, monitoring the execution status of process instances, providing process logs and performance indicators, and helping developers troubleshoot and optimize performance.
[0127] In this embodiment, the self-developed system is integrated on the low-code platform, which can make full use of the visual development environment and pre-built modules provided by the platform to accelerate the development and deployment process of the application. Through the custom loading mechanism, the self-developed system can integrate its unique functions, business logic and configuration information into the low-code platform, and work together with other modules of the platform to build a powerful and easy-to-maintain application.
[0128] During the integration process, the self-developed system needs to exchange and interact with the low-code platform through the API interface, event mechanism or message queue provided by the platform. Through reasonable interface design and data interaction mechanism, seamless integration and efficient collaboration between the self-developed system and the low-code platform can be ensured.
[0129] See also Figure 6 It is a self-developed package editing diagram in a self-developed system for a low-code platform in an embodiment of the present invention. When uploading the packaged self-developed package, the file type of the self-developed package can be edited through the self-developed package editing diagram. For example, the file type belongs to the self-developed page on the Web side, the file corresponding to the self-developed package file upload, and the description of the self-developed package. After the above editing, the generated application is displayed in the above manner.
[0130] See also Figure 7It is a self-developed resource setting diagram in a self-developed system for a low-code platform in an embodiment of the present invention. Self-developed resources are added in the application settings, and corresponding compressed files are added by adding data sources. Of course, searches and additions can also be performed based on search requirements.
[0131] See also Figure 8 , is a self-developed page information setting diagram in a self-developed system for a low-code platform in an embodiment of the present invention. When adding the basic information of the self-developed page, the "self-developed page name" here needs to be consistent with the uploaded name, that is, the page name is consistent with the self-developed page name.
[0132] See also Fig. 9 It is a self-developed component setting diagram in a self-developed system for a low-code platform in an embodiment of the present invention. When setting the self-developed component, the self-developed component can be added and the corresponding self-developed resource can be selected by setting the title name, title description and self-developed resource of the self-developed component.
[0133] See also Fig.10 , is a flow chart of a method for self-development of a low-code platform in an embodiment of the present invention, including:
[0134] Step S101, creating a front end based on the Monorepo management architecture, extracting the business code and public components in the front end, and building a platform management end, an application mobile end, and an application Web end in the front end according to the business code;
[0135] Step S102, layout the dependent packages on the front end to store the common components and the self-developed templates, and the self-developed templates integrate scaffolding, respond to the development instructions from the mobile terminal of the application or the web terminal of the application, download the scaffolding and customize the configuration template through the scaffolding, initialize the local environment, determine whether to call the common components for development management according to the business type of the development instructions to complete the custom configuration of the template, and generate a self-developed package for replacing the data at the location of the placeholder in the self-developed system through command tool line packaging;
[0136] Step S103, determining the type of the self-developed package. If the self-developed package type is a page, creating a self-developed page, and entering a name in the self-developed page to match the corresponding self-developed resource package to determine the self-developed package; if the self-developed package type is a component, dragging the self-developed component and the common component in the page editor to configure and complete the self-developed package as the component;
[0137] Step S104, using the backend to parse the self-developed package, determine the description file that pre-replaces the placeholder position in the code file, replace the placeholder position with the description file to form a self-developed application, and publish it.
[0138] It should be noted that the self-developed method for the low-code platform in this application corresponds one-to-one to the self-developed system for the low-code platform. The corresponding technical details, i.e., the technical solutions and technical effects, refer to the above-mentioned self-developed system for the low-code platform and will not be described one by one.
[0139] See also Fig.11 , which is a complete flow chart of a method for self-development of a low-code platform in an embodiment of the present invention, is described in detail as follows:
[0140] By downloading the scaffolding in the self-developed template; for example, downloading the scaffolding template for a specific framework (such as React, Vue, Angular, etc.) from an internal or third-party repository, and ensuring that the local environment meets the scaffolding dependency requirements (such as Node.js, npm / yarn, etc.
[0141] Initialize the local environment using command line tools; for example, unzip the downloaded scaffolding template, go to the unzipped directory, run npm install or yarn install to install dependencies, and configure environment variables or project settings as needed.
[0142] Develop the component or page locally; for example, locate the development directory of the component or page in the project directory structure. Write the code of the component or page, including HTML, CSS, JavaScript, etc.
[0143] The command line tool packages and generates a compressed file, i.e., a self-developed package, such as a ZIP format file; for another example, running a packaging command (such as npm run build or yarn build) generates code and resources for the production environment. The generated resources are compressed into a self-developed package in ZIP format.
[0144] Upload from the development package;
[0145] By selecting the uploaded resource file in the application;
[0146] Determine whether the uploaded self-developed package (resource file) is a page or a component; if the self-developed package is a page, create a self-developed page, enter the name and correspond it with the self-developed package resource to complete the release; if the self-developed package is a component, drag the self-developed component into the page editor, and the component corresponds to the above component to complete the release;
[0147] For example, for a page: create a new page or edit an existing page, enter a page name, and select the settings corresponding to the self-developed package resources to complete the page publishing and make it available in the application. For a component, in the page editor, select the function of dragging in a component, select the component corresponding to the self-developed package from the list of published components, drag the component to the appropriate location in the page, configure it, and complete the page editing and publishing.
[0148] After the app is released, you can view it in the app by downloading it.
[0149] In this embodiment, the method for self-development of a low-code platform provided by the embodiment of the present disclosure is adopted, and a front end is created based on the Monorepo management architecture. A platform management end, an application mobile end, and an application Web end are respectively constructed on the front end. In response to development instructions from the application mobile end or the application Web end, a template is customized through a scaffolding. The scaffolding determines whether to call the common component for development management according to the business type of the development instruction to complete the customized configuration of the template, and generates a self-developed package for replacing the data at the location of the placeholder in the self-developed system, so that the back end replaces the description file content in the self-developed package through the placeholder, so that the front end can be loaded directly. In this way, not only does the front end support local debugging, but also can realize self-development according to user needs, and it is also beneficial for the front end to realize online code editing and online debugging, thereby improving system development efficiency.
[0150] In other embodiments, the present disclosure also provides an electronic device, including: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device executes the above method.
[0151] Fig.12 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Fig.12 The computer system 1200 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0152] like Fig.12As shown, the computer system 1200 includes a central processing unit (CPU) 1201, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1202 or the program loaded from the storage part 508 to the random access memory (RAM) 1203, such as executing the method in the above embodiment. In the random access memory 1203, various programs and data required for system operation are also stored. The central processing unit 1201, the read-only memory 1202 and the random access memory 1203 are connected to each other through a bus 1204. An input / output (I / O) interface 1205 is also connected to the bus 1204.
[0153] The following components are connected to the input / output interface 1205: an input section 1206 including a keyboard, a mouse, etc.; an output section 1207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1208 including a hard disk, etc.; and a communication section 1209 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1209 performs communication processing via a network such as the Internet. A drive 1210 is also connected to the input / output interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1210 as needed so that a computer program read therefrom is installed into the storage section 1208 as needed.
[0154] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1209, and / or installed from a removable medium 1211. When the computer program is executed by a central processing unit (CPU) 1201, various functions defined in the system of the present application are executed.
[0155] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent possible changes only. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. Parts and subsamples of some embodiments may be included in or replace parts and subsamples of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of a stated sub-sample, whole, step, operation, element, and / or component, but do not exclude the presence or addition of one or more other sub-samples, wholes, steps, operations, elements, components and / or groups of these. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0156] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. Technicians can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0157] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some sub-samples can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0158] The flowchart and block diagram in the accompanying drawings show the possible architecture, functions and operations of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A self-developed system for low-code platforms, It is characterized in that include: The front end is created based on the Monorepo management architecture, the business code and public components in the front end are extracted, and the platform management end, application mobile end and application Web end are respectively built on the front end according to the business code; A dependency package is arranged in the front end, and is used to store the common components and the self-developed templates, and the self-developed templates integrate scaffolding, and in response to the development instructions from the mobile terminal of the application or the web terminal of the application, the template is customized through the scaffolding, and the scaffolding determines whether to call the common components for development management according to the business type of the development instructions to complete the customized configuration of the template, and generates a self-developed package for replacing the data at the location of the placeholder in the self-developed system; The backend parses the self-developed package, determines the description file that pre-replaces the placeholder position in the code file, replaces the placeholder position with the description file to form a self-developed application, and publishes it.
2. The system according to claim 1, It is characterized in that The self-developed template includes a visual interface that displays a framework page of the template. The visual interface layouts multiple business controls in the presented graphical interface. The multiple business controls are respectively common component controls, common methods, development templates, command line tools, naming controls, new controls and installation controls. The business controls are combined by dragging and dropping to form the business process logic of the self-developed template. The common component control is used to call the common component stored in the dependent package to build the template; The public method is used to configure the business process called by each of the public components; The development template is used to store templates of various styles; The command line tool is used to initialize the local environment, parse the input instructions, call the newly created control to develop components according to the parsing results, and generate a compressed file; The naming control is used to receive the naming parameters of the self-developed package, copy the code file corresponding to the self-developed package to the local template, and replace the naming parameters with the placeholders in the template; The installation control is used to receive the dependent package from the warehouse, search for the installation path according to the directory, and install the dependent package according to the installation path; The newly created control is used to compile and package the self-developed package of the corresponding directory file according to the received name, generate a packaged file and compress it, and wait for the compressed file to be uploaded.
3. The system according to claim 2, It is characterized in that The self-developed package includes a style file, a self-developed package description file, a static resource file and a directly interpreted script file, wherein the self-developed package description file is embedded with a local development entry, an online access address, a packaged file address to be copied, a self-developed component and a routing address corresponding to the local development, and the static resource file stores images and fonts of the template.
4. The system according to claim 3, It is characterized in that The application mobile terminal and the application Web terminal are respectively embedded with a custom loading mechanism in the entry file, and the custom loading mechanism has a placeholder preset in the code file so that when the backend publishes the application, it replaces the application with the description file in the self-developed package through the placeholder.
5. The system according to any one of claims 1 to 4, It is characterized in that The platform management end, the application mobile end and the application Web end are respectively provided with front-end controls, and the front-end controls include a first management end component, a data resource control, a database control and a routing permission control; the back end is provided with back-end controls, and the back-end controls include a flowchart component, a packaging configuration, an event engine, a formula engine, a page engine, a second management end component, a controller, a Widget and an Element-ui.
6. The system according to claim 5, It is characterized in that The first management-end component manages the database control according to the API type, and establishes a mapping relationship between the API and the components in the database control, wherein, based on the API type, relevant components are configured from the database control; based on a preset operation model, the API type and relevant components are coupled and operated, and the coupling results are decoupled through a preset programming model to obtain a decoupling result, and a mapping relationship is established based on the decoupling result.
7. The system according to claim 5, It is characterized in that The second management end component receives the corresponding drag and drop signals of each of the backend controls, combines the business process and configures the business attributes, so that the controller responds according to the business process and the business attributes.
8. The system according to claim 1, It is characterized in that The self-developed system is integrated on the low-code platform, which includes a visualization module, a business construction module and a process engine module, wherein the visualization module includes a graphical interface, business controls and a process editor, and the graphical interface is used to layout the business controls and the process editor; the process editor combines the business controls by dragging and dropping to form business process logic; the business construction module is used to dynamically execute the properties and configurations of the visualization module and write code on the visualization module; the process engine module is used to drive the visualization module to respond according to the business process.
9. A method for self-development of low-code platforms, It is characterized in that include: Create a front-end based on the Monorepo management architecture, extract the business code and public components in the front-end, and build a platform management end, an application mobile end, and an application Web end in the front-end according to the business code; Dependent packages are laid out on the front end to store the common components and self-developed templates, and the self-developed templates are integrated with scaffolds. In response to development instructions from the mobile terminal of the application or the web terminal of the application, the scaffolds are downloaded and the templates are customized through the scaffolds to initialize the local environment. According to the business type of the development instructions, it is determined whether to call the common components for development management to complete the customized configuration of the templates, and a self-developed package for replacing the data at the location of the placeholders in the self-developed system is generated through command tool line packaging; Determine the type of the self-developed package. If the self-developed package type is a page, create a self-developed page, and enter a name in the self-developed page to match the corresponding self-developed resource package to determine the self-developed package; if the self-developed package type is a component, drag the self-developed component and the common component in the page editor to configure and complete the self-developed package as the component; The self-developed package is parsed by using the backend to determine the description file that pre-replaces the placeholder position in the code file, and the placeholder position is replaced with the description file to form a self-developed application, which is then released.
10. An electronic device, It is characterized in that include: Processor and memory; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device executes the method as claimed in claim 9.
