CN113434133A - Application building method, device, equipment and computer readable storage medium - Google Patents

Application building method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN113434133A
CN113434133A CN202110997246.0A CN202110997246A CN113434133A CN 113434133 A CN113434133 A CN 113434133A CN 202110997246 A CN202110997246 A CN 202110997246A CN 113434133 A CN113434133 A CN 113434133A
Authority
CN
China
Prior art keywords
code
application
structured query
query statement
data
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.)
Granted
Application number
CN202110997246.0A
Other languages
Chinese (zh)
Other versions
CN113434133B (en
Inventor
张挺军
刘桂芬
朱瑜鑫
陈军
刘小双
成建洪
赵一波
冯建设
周文明
王春洲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xinrun Fulian Digital Technology Co Ltd
Original Assignee
Shenzhen Xinrun Fulian Digital 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 Shenzhen Xinrun Fulian Digital Technology Co Ltd filed Critical Shenzhen Xinrun Fulian Digital Technology Co Ltd
Priority to CN202110997246.0A priority Critical patent/CN113434133B/en
Publication of CN113434133A publication Critical patent/CN113434133A/en
Application granted granted Critical
Publication of CN113434133B publication Critical patent/CN113434133B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/35Creation or generation of source code model driven
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses an application building method, an application building device, application building equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring a user database; acquiring an applied data model, wherein a structured query statement template, a front-end webpage code template and a rear-end code template are arranged in the data model; acquiring key data input by a user; correspondingly generating a structured query statement code for creating a table and a field, a front-end code for constructing a front-end webpage and a back-end service code; storing an application code package integrated by the structured query statement codes, the front-end codes and the back-end service codes, and generating a target application based on the application code package; by acquiring the data model and substituting the key data into the data model, the structured query statement codes, the front-end codes of the front-end webpage and the back-end service codes are synchronously generated, namely, the database, the front-end page and the back-end service are synchronously created, and the application development efficiency is improved.

Description

Application building method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of application processing technologies, and in particular, to an application building method, an application building device, an application building apparatus, and a computer-readable storage medium.
Background
The building of applications in software engineering typically involves a lot of work, such as building an underlying framework, building a database, building a data table, building a front-end page, etc. The method has the advantages that heavy development tasks are required in each step, for example, dozens of tables are required to be built for developing one application, the possibility of errors is increased in the repeated process, the forms related to the application are numerous, the pages need to be designed one by one, meanwhile, more pages need to be dragged and dragged repeatedly, the development tasks are complex, a large amount of time is required to be consumed for building a front-end page, and the problem of low development efficiency caused by the complex building work of the application is solved.
Disclosure of Invention
The application mainly aims to provide an application building method, an application building device, application building equipment and a computer readable storage medium, and aims to solve the problems that the work of building the application is complex and the development efficiency is low at present.
In order to achieve the above object, the present application provides an application building method, including the steps of:
acquiring a user database;
acquiring an applied data model, wherein a structured query statement template, a front-end webpage code template and a rear-end code template are arranged in the data model, and identification positions capable of nesting data are arranged in the structured query statement template, the front-end webpage code template and the rear-end code template;
acquiring key data input by a user, wherein the key data comprises a data table name, a field name and a field type;
embedding the key data into each identification position, and correspondingly generating a structured query statement code for creating a table and a field, a front-end code for constructing a front-end webpage and a back-end service code; wherein the created tables and fields are stored within the user database;
storing the application code package integrated by the structured query statement codes, the front-end codes and the back-end service codes, and generating the target application based on the application code package.
Optionally, before the step of obtaining the user database, the method further includes:
acquiring an integrated frame;
and based on the integrated framework, selecting a single framework according to preset framework requirements, wherein the single framework is used for building applications.
Optionally, before the step of obtaining the data model of the application, the method includes:
acquiring a built-in modeling tool, wherein the modeling tool is provided with a fixed database component, and the database component at least comprises a table and a connecting line;
dragging the table to a preset canvas area, and setting the attribute of the table, wherein the attribute comprises at least one of the name of the table, the name of the table field and the type of the table field;
generating table relationships between the tables through the connecting lines;
and building and finishing the data model based on the table relation and the attributes.
Optionally, the key data is embedded into each of the identification positions, and a structured query statement code for creating a table and a field, a front-end code for constructing a front-end webpage, and a back-end service code are correspondingly generated; wherein the step of storing the created tables and fields in the user database comprises:
acquiring the structured query statement template, wherein the structured query statement template consists of a first fixed code and the identification position;
embedding the key data into the identification position of the structured query statement template to generate the structured query statement code;
embedding the key data into each identification position, and correspondingly generating a structured query statement code for creating a table and a field, a front-end code for constructing a front-end webpage and a back-end service code; wherein after the step of storing the created tables and fields in the user database, the method comprises:
acquiring the structured query statement codes and transmitting the structured query statement codes to the user database;
creating a data table and a data field according to the structured query statement code;
and storing the data table and the data field in the user database to complete the database construction of the target application.
Optionally, the key data is embedded into each of the identification positions, and a structured query statement code for creating a table and a field, a front-end code for constructing a front-end webpage, and a back-end service code are correspondingly generated; wherein the step of storing the created tables and fields in the user database comprises:
acquiring the front-end webpage code template, wherein the front-end webpage code template consists of a second fixed code and the identification position;
embedding the key data into the identification position of the front-end webpage code template to generate the front-end code for constructing a front-end webpage;
embedding the key data into each identification position, and correspondingly generating a structured query statement code for creating a table and a field, a front-end code for constructing a front-end webpage and a back-end service code; wherein after the step of storing the created tables and fields in the user database, the method comprises:
and outputting the front-end code to a front-end webpage package, and generating a front-end page of the target application according to the front-end webpage package.
Optionally, the key data is embedded into each of the identification positions, and a structured query statement code for creating a table and a field, a front-end code for constructing a front-end webpage, and a back-end service code are correspondingly generated; wherein the step of storing the created tables and fields in the user database comprises:
acquiring the back-end code template, wherein the back-end code template consists of a third fixed code and the identification position;
embedding the key data into the identification position of the back-end code template to generate the back-end service code;
embedding the key data into each identification position, and correspondingly generating a structured query statement code for creating a table and a field, a front-end code for constructing a front-end webpage and a back-end service code; wherein after the step of storing the created tables and fields in the user database, the method comprises:
and outputting the back-end service code to a back-end service package, and completing back-end service construction of the target application according to the back-end service package.
Optionally, the key data is embedded into each of the identification positions, and a structured query statement code for creating a table and a field, a front-end code for constructing a front-end webpage, and a back-end service code are correspondingly generated; wherein after the step of storing the created tables and fields in the user database, the method comprises:
when a signal for adjusting the user database and the front-end page is detected, acquiring modified data;
and correspondingly visually adjusting according to the modified data.
To achieve the above object, the present application provides a speech recognition apparatus, comprising:
the first acquisition module acquires a user database;
the second acquisition module is used for acquiring an applied data model, a structured query statement template, a front-end webpage code template and a rear-end code template are arranged in the data model, and identification positions where data can be nested are arranged in the structured query statement template, the front-end webpage code template and the rear-end code template;
the third acquisition module is used for acquiring key data input by a user, wherein the key data comprises a data table name, a field name and a field type;
the generating module is used for embedding the key data into each identification position and correspondingly generating a structured query statement code for creating a table and a field, a front-end code for constructing a front-end webpage and a back-end service code; wherein the created tables and fields are stored within the user database;
and the storage module is used for storing the application code package integrated by the structured query statement codes, the front-end codes and the back-end service codes and generating the target application based on the application code package.
In order to achieve the above object, the present application further provides an application building apparatus, where the application building apparatus includes: a memory, a processor and an application building program stored on the memory and operable on the processor, the application building program when executed by the processor implementing the steps of the application building method as described above.
In addition, to achieve the above object, the present application also provides a computer-readable storage medium, on which an application building program is stored, and the application building program, when executed by a processor, implements the steps of the application building method as described above.
In the application, a user database is obtained; acquiring an applied data model, wherein a structured query statement template, a front-end webpage code template and a rear-end code template are arranged in the data model, and identification positions capable of nesting data are arranged in the structured query statement template, the front-end webpage code template and the rear-end code template; acquiring key data input by a user, wherein the key data comprises a data table name, a field name and a field type; embedding the key data into each identification position, and correspondingly generating a structured query statement code for creating a table and a field, a front-end code for constructing a front-end webpage and a back-end service code; wherein the created tables and fields are stored within the user database; storing an application code package integrated by the structured query statement codes, the front-end codes and the back-end service codes, and generating a target application based on the application code package; by the method, the data model of the application is obtained, the key data input by the user is obtained and substituted into the code template of the data model, the structured query statement code, the front-end code of the front-end webpage and the rear-end service code are synchronously generated, namely, the database, the front-end page and the rear-end service are simultaneously created through the key data and the data model, so that the complex work of building the front-end page in building the application is saved, and the application development efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of a hardware operating environment according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart of a first embodiment of the application building method of the present application;
FIG. 3 is a block diagram of a voice recognition apparatus according to a preferred embodiment of the present invention.
The implementation, functional features and advantages of the objectives of the present application 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 present application and are not intended to limit the present application.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present application.
It should be noted that, in the embodiment of the present application, the application building device may be a smart phone, a personal computer, a server, and the like, and is not limited herein.
As shown in fig. 1, the application building apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
It will be appreciated by those skilled in the art that the device structure shown in figure 1 does not constitute a limitation of application building devices and may comprise more or fewer components than 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 an application building program. The operating system is a program for managing and controlling hardware and software resources of the device, and supports the operation of application building programs and other software or programs. In the device shown in fig. 1, the user interface 1003 is mainly used for data communication with a client; the network interface 1004 is mainly used for establishing communication connection with a server; the processor 1001 may be configured to invoke an application building program stored in the memory 1005 and perform the following operations:
acquiring a user database;
acquiring an applied data model, wherein a structured query statement template, a front-end webpage code template and a rear-end code template are arranged in the data model, and identification positions capable of nesting data are arranged in the structured query statement template, the front-end webpage code template and the rear-end code template;
acquiring key data input by a user, wherein the key data comprises a data table name, a field name and a field type;
embedding the key data into each identification position, and correspondingly generating a structured query statement code for creating a table and a field, a front-end code for constructing a front-end webpage and a back-end service code; wherein the created tables and fields are stored within the user database;
storing the application code package integrated by the structured query statement codes, the front-end codes and the back-end service codes, and generating the target application based on the application code package.
Therefore, by building the data model of the application, the key data input by the user is obtained and substituted into the code template of the data model, the structured query statement code, the front-end code of the front-end webpage and the rear-end service code are synchronously generated, namely, the database, the front-end page and the rear-end service are simultaneously created through the key data and the data model, the complex work of building the front-end page in building the application is saved, the application development efficiency is improved, three parts for building the application database, the front-end page and the rear-end service are relatively independent and synchronously generated, and the error probability in the building process is reduced.
Referring to fig. 2, a first embodiment based on application building specifically includes the following steps:
s10, acquiring a user database;
in this embodiment, the development system refers to an integrated development environment, is an application program for providing a program development environment, and generally includes tools such as a code editor, a compiler, a debugger, and a graphical user interface, and when building an application, the development system may be a development system/environment that is selected by a developer who initially builds the application when building a data model, or that is prepared or selected by a user when the user needs to compile a code package into a program after the application generates a code package of the application. The user Database is a Database for storing user data, a plurality of databases are arranged in the development system, different users or application programs can select own databases for storing application data, therefore, before the application is built, the own databases, namely the user databases, need to be selected, and the user databases and the development system are connected through JDBC (Java Database Connectivity), so that the application built through the development system is submitted to the user databases, data generated by the application is stored in the user databases, and meanwhile, the obtained user data is also transmitted to the development system for arrangement.
By selecting the own database of the user and connecting the user database with the development system, the own application and database of the user can be conveniently established.
Further, the step of obtaining the user database is preceded by:
step a, acquiring an integrated frame;
in this embodiment, the system integrates a spring group (which is an ordered set of a series of frames) of the mainstream
Aggregated development tools, frameworks) and a microservice framework whose basic idea is to consider creating applications around business domain components that can be developed, managed, and accelerated independently. The use of microservice cloud architectures and platforms in decentralized components makes deployment, management, and service function delivery simpler. Each micro service comprises two modules, namely an interface module and an implementation module, all service implementation and parameter configuration of the service are located in the implementation module, and meanwhile, each service realizes lightweight communication. The integrated framework comprises a plurality of different monomer frameworks, the requirements of large-scale application or small-scale application can be met, and the monomer frameworks can be selected according to the framework requirements of the application built by a user.
B, based on the integrated framework, selecting a monomer framework according to preset framework requirements, wherein the monomer framework is used for building application;
in this embodiment, a single architecture is freely selected according to a preset architecture requirement of an application to be built or a preset architecture requirement that a user wants to obtain, and a structural architecture of the built application is determined.
S20, acquiring an applied data model, wherein a structured query statement template, a front-end webpage code template and a rear-end code template are arranged in the data model, and identification positions where data can be nested are arranged in the structured query statement template, the front-end webpage code template and the rear-end code template;
in this embodiment, the obtained data model may be a model created when an application is built, or may be a model that has already been created, wherein after data of a user is obtained through a data model for visually building a target application in a development system, a new code is generated according to a structured query statement template, a front-end webpage code template and a back-end code template that are built in the development system, and the new code may directly generate a plurality of corresponding databases and form pages in batch through data modeling, thereby reducing the tedious work of building the application and improving the development efficiency.
Further, the step of obtaining the data model of the application includes:
b, acquiring a built-in modeling tool, wherein the modeling tool is provided with a fixed database component, and the database component at least comprises a table and a connecting line;
in this embodiment, a modeling tool is built in the development system, the modeling tool has a fixed data component, at least two components of a table and a connecting line are included in the data component, the table refers to a data table capable of creating data and fields, and the data table includes fields.
C, dragging the form to a preset canvas area, and setting the attribute of the form, wherein the attribute comprises at least one of the form name, the form field name and the form field type;
in this embodiment, a form is dragged to a canvas area on a page of a modeling tool by dragging and pulling a mouse, then attributes of the form are set in each form, the attributes at least comprise a form name, a form field and a form field type, the form name is a form name for creating the form, and if the form name is personnel information, the created form name is the personnel information; the data table is composed of non-number sections, the table fields correspond to different data information, namely, the different data information is correspondingly placed according to the fields, such as name, age and the like, and is placed in the data table to correspond to the fields; the table field type indicates what type is used for a specific column, such as varchar (variable-length character type), number (numeric type), date (numeric type), and the like. According to the set table attributes, the association between different data tables can be established.
D, generating a table relation among the tables through the connecting lines;
in this embodiment, after the mouse is repeatedly dragged and pulled for many times and the attributes of the data tables are set, the data tables and the data tables are connected in series through the connecting line, and after the connecting line is formed according to the attributes of the data tables, the system generates a sub-key field between every two data tables to perform association between the tables, that is, generate a table relationship. The purpose of generating the child key fields for association between tables is to facilitate looking up data.
And e, building the data model based on the table relation and the attributes.
In this embodiment, after table relationships between tables and attributes of data tables are obtained, a data model is preliminarily built, the model includes table relationships between tables, table names and table structure contents, at this time, on a page in a modeling tool, a main key and an incremental key of each table are visually set, the main key refers to a field or a combination of fields which can uniquely represent each record in the data table, one main key uniquely identifies each row of record in one table, and simultaneously, the main key associates the record with data stored in other tables, so that when one data is searched, the associated data can be searched through the main key and the sub-key field association, and how to realize data association and communication between different data tables. And meanwhile, a self-increment key is visually arranged on a page of the modeling tool, the self-increment key is used for quickly developing and improving the storage performance, and a continuous field is arranged when a data table and a statistical data table are added. And finally completing the construction of the data model after the setting.
S30, acquiring key data input by a user, wherein the key data comprises a data table name, a field name and a field type;
in this embodiment, a user may establish a user database, a front-end page, and a back-end service module by inputting key data into a data model, where the key data includes a data table name, a field name, and a field type.
S40, embedding the key data into each identification position, and correspondingly generating a structured query statement code for creating tables and fields, a front-end code for constructing a front-end webpage and a back-end service code; wherein the created tables and fields are stored within the user database;
in this embodiment, the Structured Query Language template, the web page code template, and the back-end code template are all provided with identification positions where data can be nested, it can be understood that the code template is composed of fixed codes and reserved representation positions, key data is embedded in the representation positions, new codes can be generated, and the new codes generated by different code templates and different embedded key data are also different. Corresponding modules, such as a user database, a front-end webpage and a back-end service, can be created according to the new code development system, and the specific creation process has three types.
The type one is as follows:
the development system generates corresponding Structured Query statements (SQL statements) according to contents set in the modeling tool, such as table names, table fields, table field types, and the like, each data table corresponds to a create table statement, and when the development system converts the data tables and the fields in the tables, the fields between the data tables are also output together through the create statements, so as to create the data tables and the data fields. Specifically, an SQL statement template in a development system is obtained, wherein the SQL statement template consists of a first fixed code and a mark position corresponding to a structured query statement template; the method comprises the steps that a first fixed code is a default SQL statement built in a system, key data are embedded into a mark position of an SQL statement template, a new code is generated, the new code is a structured query statement code (SQL code), the SQL code contains key data input by a user, a corresponding data table and data fields can be created, the SQL statement code can be understood and transmitted to a user database, the user database creates the corresponding data table and data fields according to the SQL statement code, the data table and the data fields are stored in the user database, and database building of target application is completed.
Type two:
acquiring a front-end webpage code template in the development system, wherein the front-end webpage code template consists of a second fixed code and a reserved identification position in the front-end webpage code template; the second fixed code refers to fixed codes of a fixed front part and a fixed tail part of a front-end webpage, and are fixed templates which are arranged in the development system, and because a form in the front-end webpage code template has a fixed area, namely a representation position, key data input by a user is embedded into the identification position of the front-end webpage code template to generate a new code, the new code is a front-end code for constructing the front-end webpage, the front-end code is output to a front-end webpage package, and the development system completes form display of the front-end webpage of a target application according to the front-end webpage package, so that the form of each front-end webpage corresponds to one data table, and the front-end webpage of the target application is quickly and accurately created.
Type three:
the method comprises the steps of obtaining a rear-end Java code template in a development system, wherein the rear-end Java code template is composed of a third fixed code and a reserved identification position of the rear-end code template, generating a rear-end service code when the key data are embedded into the identification position of the rear-end code template, outputting the rear-end service code to a rear-end service package, completing the construction of a rear-end service module of a target application by the development system according to the rear-end service package, and enabling the rear-end service module to comprise a connection database interface and an addition, deletion, modification and check interface, so that the development system supports basic functions of database field modification and addition, deletion, modification and check.
Further, the key data are embedded into each identification position, and a structured query statement code for creating a table and a field, a front-end code for constructing a front-end webpage and a back-end service code are correspondingly generated; wherein the step of creating the tables and fields to be stored in the user database comprises, after the step of creating the tables and fields to be stored in the user database:
step f, when a signal for adjusting the user database and the front end page is detected, acquiring modified data;
in this embodiment, after the building of the data model and the building of the target application are completed through the above steps, the development system further supports continuous adjustment and optimization, the basis of the adjustment and optimization is that the generated target application does not meet the requirements of developers, and the specific requirements may be the size, the type, and the like of a data field, which are not specifically limited here. When the created target application needs to be readjusted and optimized, a signal needing to be optimized is input, and then the development system can correspondingly adjust according to the data modified by the user.
G, correspondingly visually adjusting according to the modified data;
in this embodiment, when a signal to be adjusted is detected, a user can perform visual configuration on a front-end page and a database to complete optimization of an application overall function, and a development system acquires modification data input by the user to perform corresponding adjustment and feedback. For example, a certain front-end field is selected in a front-end page, the field size, the field type, the control size and the like can be configured, simple modification/design of the style and the field of the front-end page is completed, a development system captures the replaced field, the replaced field is modified data, it needs to be stated that a third fixed code comprises a code template connected with a database and a code template for increasing, deleting, modifying and checking, contents corresponding to the field in the code template connected with the database are connected with a user database, and when a user modifies the field data in the front-end page, a modified data set is embedded into the code template for increasing, deleting, modifying and checking, and the field in the data model can be synchronously updated to the latest data; meanwhile, the user can adjust the fields of the database in the system, re-edit the basic information such as the field names and the field labels, nest the modified data into the code template connected with the database, and update the modified data into the user database.
S50, storing the application code package integrated by the structured query statement code, the front-end code and the back-end service code, and generating a target application based on the application code package;
in this embodiment, a statement code capable of creating a database, a front-end code for creating a front-end page, and a back-end service code for creating a back-end service are stored, and these codes can implement codes required for building a target application. When a target application needs to be built, a user selects an integrated development environment of the user by himself, decompresses a code packet and introduces the decompressed code packet into the integrated development environment, and the building of the target application can be achieved. Because the statement code, the front-end code and the back-end service code are internally provided with the frame code and the frame directory, and simultaneously comprise the connection of a user database, an addition and deletion modification and check interface of the back end and a form page of the front end, the user cannot build the basic frame content of the application again, and only needs to expand the business logic and realize the business logic.
The application building method comprises the following steps: acquiring a user database; acquiring an applied data model, wherein a structured query statement template, a front-end webpage code template and a rear-end code template are arranged in the data model, and identification positions capable of nesting data are arranged in the structured query statement template, the front-end webpage code template and the rear-end code template; acquiring key data input by a user, wherein the key data comprises at least one of a data table name, a field name and a field type; embedding the key data into each identification position, and correspondingly generating a structured query statement code for creating a table and a field, a front-end code for constructing a front-end webpage and a back-end service code; wherein the created tables and fields are stored within the user database; storing an application code package integrated by the structured query statement codes, the front-end codes and the back-end service codes, and generating a target application based on the application code package; by the method, the data model of the application is obtained, the key data input by the user is obtained and substituted into the code template of the data model, the structured query statement code, the front-end code of the front-end webpage and the rear-end service code are synchronously generated, namely, the database, the front-end page and the rear-end service are simultaneously created through the key data and the data model, so that the complex work of building the front-end page in building the application is saved, and the application development efficiency is improved.
In addition, an application building device is further provided in the embodiment of the present application, and with reference to fig. 3, the device includes:
a first obtaining module 10, for obtaining a user database;
the second obtaining module 20 obtains an applied data model, wherein a structured query statement template, a front-end webpage code template and a back-end code template are arranged in the data model, and identification positions where data can be nested are arranged in the structured query statement template, the front-end webpage code template and the back-end code template;
the third obtaining module 30 obtains key data input by a user, wherein the key data includes a data table name, a field name and a field type;
the generating module 40 is used for embedding the key data into each identification position and correspondingly generating a structured query statement code for creating a table and a field, a front-end code for constructing a front-end webpage and a back-end service code; wherein the created tables and fields are stored within the user database;
and the storage module 50 is used for storing the application code package integrated by the structured query statement codes, the front-end codes and the back-end service codes and generating the target application based on the application code package.
Further, the application building apparatus further includes:
a third acquisition module for acquiring the integrated frame;
and the selection module is used for selecting a single framework based on the integrated framework according to the preset framework requirement, wherein the single framework is used for building application.
Further, the second obtaining module 20 includes:
the first acquisition submodule acquires a built-in modeling tool, the modeling tool is provided with a fixed database component, and the database component at least comprises a table and a connecting line;
the setting submodule is used for dragging the table to a preset canvas area and setting the attribute of the table, wherein the attribute comprises at least one of the name of the table, the name of the table field and the type of the table field;
the first generation submodule generates a table relation between the tables through the connecting line;
and building a submodule, and building the data model based on the table relation and the attributes.
Further, the generating module 40 includes:
the second obtaining sub-module is used for obtaining the structured query statement template, and the structured query statement template consists of a first fixed code and the identification position;
the second generation sub-module is used for embedding the key data into the identification position of the structured query statement template to generate the structured query statement code;
the application building apparatus further comprises:
the fourth obtaining sub-module is used for obtaining the structured query statement codes and transmitting the structured query statement codes to the user database;
the creating sub-module creates a data table and a data field according to the structured query statement code;
and the storage submodule stores the data sheet and the data field in the user database to complete the database construction of the target application.
Further, the generating module 40 further includes:
the fourth obtaining submodule is used for obtaining the front-end webpage code template, and the front-end webpage code template consists of a second fixed code and the identification position;
the third generation submodule is used for embedding the key data into the identification position of the front-end webpage code template to generate the front-end code for constructing the front-end webpage;
the application building apparatus further comprises:
and the first output submodule outputs the front-end code to a front-end webpage packet and generates a front-end page of the target application according to the front-end webpage packet.
Further, the generating module 40 further includes:
the fifth obtaining submodule is used for obtaining the back-end code template, and the back-end code template consists of a third fixed code and the identification position;
the fourth generation submodule is used for embedding the key data into the identification position of the back-end code template to generate the back-end service code;
the application building apparatus further comprises:
and the second output submodule outputs the back-end service code to a back-end service package, and the development system completes the construction of the back-end service module of the target application according to the back-end service package.
Further, the application building apparatus further comprises:
the detection module is used for acquiring modified data when a signal for adjusting the user database and the front-end page is detected;
and the adjusting module is used for correspondingly and visually adjusting according to the modified data.
The specific implementation of the speech recognition apparatus of the present application is basically the same as the embodiments of the application building method, and is not described herein again.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where an application building program is stored on the storage medium, and the application building program, when executed by a processor, implements the steps of the application building method as described below.
The embodiments of the application building device and the computer-readable storage medium can refer to the embodiments of the application building method, 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 apparatus 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 apparatus. 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 apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
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 application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as 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 application.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. An application building method, characterized in that the method comprises the steps of:
acquiring a user database;
acquiring an applied data model, wherein a structured query statement template, a front-end webpage code template and a rear-end code template are arranged in the data model, and identification positions capable of nesting data are arranged in the structured query statement template, the front-end webpage code template and the rear-end code template;
acquiring key data input by a user, wherein the key data comprises a data table name, a field name and a field type;
embedding the key data into each identification position, and correspondingly generating a structured query statement code for creating a table and a field, a front-end code for constructing a front-end webpage and a back-end service code; wherein the created tables and fields are stored within the user database;
storing the application code package integrated by the structured query statement codes, the front-end codes and the back-end service codes, and generating the target application based on the application code package.
2. The application building method according to claim 1, wherein, prior to the step of obtaining a user database, the method further comprises:
acquiring an integrated frame;
and based on the integrated framework, selecting a single framework according to preset framework requirements, wherein the single framework is used for building applications.
3. The application building method according to claim 1, wherein the step of obtaining a data model of an application is preceded by the method comprising:
acquiring a built-in modeling tool, wherein the modeling tool is provided with a fixed database component, and the database component at least comprises a table and a connecting line;
dragging the table to a preset canvas area, and setting the attribute of the table, wherein the attribute comprises at least one of the name of the table, the name of the table field and the type of the table field;
generating table relationships between the tables through the connecting lines;
and building and finishing the data model based on the table relation and the attributes.
4. The application building method according to claim 1, wherein the key data is embedded at each of the identification positions, and structured query statement codes for creating tables and fields, front-end codes for constructing front-end web pages, and back-end service codes are correspondingly generated; wherein the step of storing the created tables and fields in the user database comprises:
acquiring the structured query statement template, wherein the structured query statement template consists of a first fixed code and the identification position;
embedding the key data into the identification position of the structured query statement template to generate the structured query statement code;
embedding the key data into each identification position, and correspondingly generating a structured query statement code for creating a table and a field, a front-end code for constructing a front-end webpage and a back-end service code; wherein after the step of storing the created tables and fields in the user database, the method comprises:
acquiring the structured query statement codes and transmitting the structured query statement codes to the user database;
creating a data table and a data field according to the structured query statement code;
and storing the data table and the data field in the user database to complete the database construction of the target application.
5. The application building method according to claim 1, wherein the key data is embedded at each of the identification positions, and structured query statement codes for creating tables and fields, front-end codes for constructing front-end web pages, and back-end service codes are correspondingly generated; wherein the step of storing the created tables and fields in the user database comprises:
acquiring the front-end webpage code template, wherein the front-end webpage code template consists of a second fixed code and the identification position;
embedding the key data into the identification position of the front-end webpage code template to generate the front-end code for constructing a front-end webpage;
embedding the key data into each identification position, and correspondingly generating a structured query statement code for creating a table and a field, a front-end code for constructing a front-end webpage and a back-end service code; wherein after the step of storing the created tables and fields in the user database, the method comprises:
and outputting the front-end code to a front-end webpage package, and generating a front-end page of the target application according to the front-end webpage package.
6. The application building method according to claim 1, wherein the key data is embedded at each of the identification positions, and structured query statement codes for creating tables and fields, front-end codes for constructing front-end web pages, and back-end service codes are correspondingly generated; wherein the step of storing the created tables and fields in the user database comprises:
acquiring the back-end code template, wherein the back-end code template consists of a third fixed code and the identification position;
embedding the key data into the identification position of the back-end code template to generate the back-end service code;
embedding the key data into each identification position, and correspondingly generating a structured query statement code for creating a table and a field, a front-end code for constructing a front-end webpage and a back-end service code; wherein after the step of storing the created tables and fields in the user database, the method comprises:
and outputting the back-end service code to a back-end service package, and completing back-end service construction of the target application according to the back-end service package.
7. The application building method according to claim 6, wherein the key data is embedded at each of the identification positions, and structured query statement codes for creating tables and fields, front-end codes for building front-end web pages, and back-end service codes are correspondingly generated; wherein after the step of storing the created tables and fields in the user database, the method comprises:
when a signal for adjusting the user database and the front-end page is detected, acquiring modified data;
and correspondingly visually adjusting according to the modified data.
8. An application building apparatus, characterized in that the application building apparatus comprises:
the first acquisition module acquires a user database;
the second acquisition module is used for acquiring an applied data model, a structured query statement template, a front-end webpage code template and a rear-end code template are arranged in the data model, and identification positions where data can be nested are arranged in the structured query statement template, the front-end webpage code template and the rear-end code template;
the third acquisition module is used for acquiring key data input by a user, wherein the key data comprises a data table name, a field name and a field type;
the generating module is used for embedding the key data into each identification position and correspondingly generating a structured query statement code for creating a table and a field, a front-end code for constructing a front-end webpage and a back-end service code; wherein the created tables and fields are stored within the user database;
and the storage module is used for storing the application code package integrated by the structured query statement codes, the front-end codes and the back-end service codes and generating the target application based on the application code package.
9. An application building apparatus, characterized in that the application building apparatus comprises: a memory, a processor and an application building program stored on the memory and executable on the processor, the application building program when executed by the processor implementing the steps of the application building method according to any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon an application building program which, when executed by a processor, implements the steps of the application building method according to any one of claims 1 to 7.
CN202110997246.0A 2021-08-27 2021-08-27 Application building method, device, equipment and computer readable storage medium Active CN113434133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110997246.0A CN113434133B (en) 2021-08-27 2021-08-27 Application building method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110997246.0A CN113434133B (en) 2021-08-27 2021-08-27 Application building method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113434133A true CN113434133A (en) 2021-09-24
CN113434133B CN113434133B (en) 2022-02-15

Family

ID=77798251

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110997246.0A Active CN113434133B (en) 2021-08-27 2021-08-27 Application building method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113434133B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656724A (en) * 2021-10-20 2021-11-16 深圳市信润富联数字科技有限公司 Method and system for dynamically configuring webpage function based on web page
CN113721895A (en) * 2021-11-02 2021-11-30 树根互联股份有限公司 Application modeling method, system, device, computer equipment and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018236940A1 (en) * 2017-06-20 2018-12-27 Pagerock, Inc. Simplified development of computer applications
CN109240661A (en) * 2018-08-02 2019-01-18 武汉烽火众智数字技术有限责任公司 A kind of code generating method and device
CN109446218A (en) * 2018-09-25 2019-03-08 中国平安人寿保险股份有限公司 SQL statement generation method, device and computer readable storage medium
CN111221522A (en) * 2020-01-13 2020-06-02 大汉软件股份有限公司 Automatic code generation method of front-end and back-end separation architecture for government intensive application development
CN112463135A (en) * 2020-12-11 2021-03-09 中国人寿保险股份有限公司 Code generation method, code generator, electronic device, and storage medium
CN112764743A (en) * 2021-01-21 2021-05-07 潘胜怀 Method for automatically generating software based on data model drive
CN113050946A (en) * 2021-04-29 2021-06-29 成都新希望金融信息有限公司 Method and device for generating website application system, electronic equipment and storage medium
CN113094039A (en) * 2021-04-12 2021-07-09 中国兵器装备集团自动化研究所有限公司 Automatic code generation system based on database table

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018236940A1 (en) * 2017-06-20 2018-12-27 Pagerock, Inc. Simplified development of computer applications
CN109240661A (en) * 2018-08-02 2019-01-18 武汉烽火众智数字技术有限责任公司 A kind of code generating method and device
CN109446218A (en) * 2018-09-25 2019-03-08 中国平安人寿保险股份有限公司 SQL statement generation method, device and computer readable storage medium
CN111221522A (en) * 2020-01-13 2020-06-02 大汉软件股份有限公司 Automatic code generation method of front-end and back-end separation architecture for government intensive application development
CN112463135A (en) * 2020-12-11 2021-03-09 中国人寿保险股份有限公司 Code generation method, code generator, electronic device, and storage medium
CN112764743A (en) * 2021-01-21 2021-05-07 潘胜怀 Method for automatically generating software based on data model drive
CN113094039A (en) * 2021-04-12 2021-07-09 中国兵器装备集团自动化研究所有限公司 Automatic code generation system based on database table
CN113050946A (en) * 2021-04-29 2021-06-29 成都新希望金融信息有限公司 Method and device for generating website application system, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656724A (en) * 2021-10-20 2021-11-16 深圳市信润富联数字科技有限公司 Method and system for dynamically configuring webpage function based on web page
CN113721895A (en) * 2021-11-02 2021-11-30 树根互联股份有限公司 Application modeling method, system, device, computer equipment and readable storage medium

Also Published As

Publication number Publication date
CN113434133B (en) 2022-02-15

Similar Documents

Publication Publication Date Title
CN113434133B (en) Application building method, device, equipment and computer readable storage medium
US10949381B2 (en) Reusable transformation mechanism to allow mappings between incompatible data types
US8468492B1 (en) System and method for creation and modification of software applications
US9514115B2 (en) Method for creating form validation program and corresponding form interface according to result set metadata
CN111241454A (en) Method, system and device for generating webpage code
WO2015029193A1 (en) Web server system, application development assistance system, multilingual support method in web server system, multi-device support method in web server system, and application development assistance method
CN110705237B (en) Automatic document generation method, data processing device and storage medium
CN108762743A (en) Data table operation code generation method and device
CN111581920A (en) Document conversion method, device, equipment and computer storage medium
JP2007122135A (en) Development support device, development support method and development support program
US8413109B2 (en) Systems and methods for metamodel transformation
CN113886362A (en) Data storage system and storage method based on workflow engine and low-code platform
KR20150092880A (en) Method and Apparatus for Re-Configuring Design Decisions after Developing Graphic User Interface
CN115202663A (en) Data processing method, device and storage medium
US10621552B1 (en) Dynamically controlling case model structure using case fragments
US20100269089A1 (en) Method and system for generation of reusable design patterns
CN114281797A (en) Method for quickly creating basic level data aggregation warehouse based on agile low-code platform
CN115469849A (en) Service processing system, method, electronic device and storage medium
CN115525321A (en) Distributed task generation method, device, equipment and storage medium
JP2008243070A (en) Environmental transition server device, terminal device, environmental transition method and environmental transition program
CN112685435A (en) Table query method and system based on Vue and Mybatis
Wattanagul et al. Automated documentation for rapid prototyping
JPH1055339A (en) On-line business processing system
US20130031116A1 (en) Modeled business object data import
CN113961244B (en) Page conversion method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant