Modularized project development method, device, equipment, medium and product

Through the modular project development method, new projects and existing projects are distinguished, and the development strategies of base modules and business modules are adopted, the efficiency and flexibility problems of traditional project development methods in the face of complex and changing market environments are solved, and more efficient and flexible project development and maintenance are achieved.

CN119621078APending Publication Date: 2025-03-14INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411684860.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

When facing a complex and changing market environment, traditional holistic project development methods are difficult to effectively cope with the growth of project scale and complexity, resulting in low development efficiency, poor flexibility and high maintenance costs.

Method used

Modular project development method is adopted to distinguish new projects and existing projects, generate base modules and business modules according to project types, and first deploy base modules and then dynamically deploy business modules to achieve reasonable allocation and efficient utilization of resources.

Benefits of technology

It improves project development efficiency and flexibility, reduces the overall complexity and uncertainty of the project, reduces the risk of project failure due to local problems, and reduces maintenance costs and difficulty.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119621078A_ABST
    Figure CN119621078A_ABST
Patent Text Reader

Abstract

The invention discloses a modular project development method, device, equipment, medium and product, which are applied to the field of cloud computing, and the method comprises the steps: obtaining a to-be-developed project, and determining the project type of the to-be-developed project, the project type comprising a new project and a stock project; generating a base module and a business module of the to-be-developed project according to the project type; and deploying the base module, and dynamically deploying the service module based on the deployed base module. By distinguishing new projects from stock projects and adopting different module generation strategies, various project requirements can be better met. The base module is firstly deployed, and then the service module is dynamically deployed based on the base module, so that the resource allocation is more reasonable and efficient, and the resource utilization rate is improved. The overall complexity and uncertainty of the project are reduced through the modular development mode, the risk that the whole project fails due to local problems is reduced, the maintenance and upgrading work is more targeted through clear module division, and the maintenance cost and difficulty are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud computing technology, and in particular to a modular project development method, device, equipment, medium and product. Background Art

[0002] In today's complex and ever-changing market environment, the challenges faced by project development are becoming increasingly severe. With the rapid advancement of technology, the diversification of user needs and the dynamic changes in the market environment, the scale and complexity of projects are showing an unprecedented growth trend. The traditional integrated project development method has exposed a series of serious limitations in dealing with these new challenges.

[0003] The existing technologies mainly include the following development methods: 1. Monolithic applications. This type of application is relatively easy to maintain in the early stage. However, as the application grows larger, the internal logic of the application becomes increasingly complex, which greatly increases the complexity of application development and operation. At the same time, all business modules are in the same application, which means that any change to any business module requires the entire application to be re-released and put into production, which has poor flexibility. 2. Distributed services. This method converts the original large application into multiple small services. This method is difficult to maintain and has low resource utilization. Summary of the invention

[0004] The present invention provides a modular project development method, device, equipment, medium and product, which can effectively improve project development efficiency and flexibility.

[0005] According to one aspect of the present invention, a modular project development method is provided, the method comprising:

[0006] Acquire the projects to be developed and determine the project types of the projects to be developed, wherein the project types include new projects and existing projects;

[0007] Generate base modules and business modules for the projects to be developed according to the project types;

[0008] Deploy the base module and dynamically deploy the business module based on the deployed base module.

[0009] Optionally, determining the project type of the project to be developed includes: judging whether the project to be developed has a new project tag, and if so, determining the project type to be a new project; otherwise, determining the project type to be an existing project.

[0010] Optionally, the base module and business module of the project to be developed are generated according to the project type, including: when the project type is a new project, obtaining the base warehouse and the template warehouse, wherein the base warehouse includes various alternative base templates, and the template warehouse includes various alternative business templates; displaying the base warehouse and the template warehouse to the user to obtain the target base template and the target business template selected by the user; obtaining secondary development information, and combining the target base template, the target business template and the secondary development information to generate the base module and the business module.

[0011] Optionally, a base module and a business module of the project to be developed are generated according to the project type, including: when the project type is an existing project, determining the startup class in the project to be developed according to the specified field; taking the class associated with the startup class in the project to be developed as the base class, and taking other classes except the base class as the business class; splitting the business class according to business needs to generate sub-business classes; generating a base module according to the base class, and generating a business module according to the sub-business class.

[0012] Optionally, after generating the base module and the business module according to the project type, the method further includes: developing and maintaining the base module and the business module according to a preset cycle, wherein the development and maintenance includes code specification maintenance, version control maintenance and dependency management maintenance.

[0013] Optionally, dynamically deploying business modules based on the deployed base module includes: obtaining a business deployment command and determining each business type corresponding to the business module, wherein the business deployment command includes a target business type; matching the business module through the business deployment command to extract a target business module corresponding to the target business type from the business module; and deploying the target business module based on the deployed base module.

[0014] According to another aspect of the present invention, there is provided a modular project development device, the device comprising:

[0015] A project type determination module, used to obtain a project to be developed and determine the project type of the project to be developed, wherein the project type includes a new project and an existing project;

[0016] A base and business generation module, used to generate a base module and a business module of a project to be developed according to the project type;

[0017] The project deployment module is used to deploy the base module and dynamically deploy the business module based on the deployed base module.

[0018] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0019] at least one processor;

[0020] and a memory communicatively coupled to the at least one processor;

[0021] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a modular project development method described in any embodiment of the present invention.

[0022] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a modular project development method described in any embodiment of the present invention when executed.

[0023] According to another aspect of the present invention, a computer program product is provided. The computer program product comprises a computer program. When the computer program is executed by a processor, the computer program implements a modular project development method according to any embodiment of the present invention.

[0024] The technical solution of the embodiment of the present invention can better adapt to various project requirements by distinguishing new projects from existing projects and adopting different module generation strategies. By first deploying the base module and then dynamically deploying the business module based on it, the allocation of resources is more reasonable and efficient, and the resource utilization rate is improved. The modular development method reduces the overall complexity and uncertainty of the project, reduces the risk of failure of the entire project due to local problems, and makes maintenance and upgrade work more targeted through clear module division, reducing maintenance costs and difficulties.

[0025] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0027] Figure 1 is a flowchart of a modular project development method provided according to Embodiment 1 of the present invention;

[0028] Figure 2 is a flowchart of another modular project development method provided according to the first embodiment of the present invention;

[0029] Figure 3is a flow chart of another modular project development method provided according to the second embodiment of the present invention;

[0030] Figure 4 is a structural schematic diagram of a modular project development device provided according to Embodiment 3 of the present invention;

[0031] Figure 5 It is a structural schematic diagram of an electronic device for implementing a modular project development method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention 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 data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0034] Embodiment 1

[0035] Figure 1 A flowchart of a modular project development method is provided for the first embodiment of the present invention. This embodiment is applicable to project development scenarios. The method can be executed by a modular project development device. The modular project development device can be implemented in the form of hardware and / or software. The modular project development device can be configured in a computer controller. Figure 1 As shown, the method includes:

[0036] S110, obtaining a project to be developed, and determining a project type of the project to be developed, wherein the project type includes a new project and an existing project.

[0037] Among them, modular project development refers to the way of developing a project by splitting it into multiple relatively independent modules according to certain rules and logic. A project to be developed refers to a specific project object that is about to be developed. A project to be developed can be a new project that is to be created with a completely new concept, or it can be an existing stock project.

[0038] Specifically, the controller first needs to identify the specific project object to be developed and determine the project type to which the project belongs. A new project means a project that is built from scratch and may not be constrained by too many existing frameworks or data. During development, the architecture can be planned more freely. However, an existing project is a project that already has a certain foundation. During the development process, it is necessary to fully consider issues such as compatibility and connectivity with existing parts. Accurately determining the project type will help to select appropriate development strategies and module construction methods in the future.

[0039] Optionally, determining the project type of the project to be developed includes: judging whether the project to be developed has a new project tag, and if so, determining the project type to be a new project; otherwise, determining the project type to be an existing project.

[0040] Specifically, when a project to be developed is marked with a "new project tag", the project type can be determined to be a new project. For example, a software company is preparing to develop a new mobile game. At the beginning of the project, the project team will mark it as a "new project" in the project-related management system or document. This can be done by setting a specific identification field, such as "new_project_flag = true" as a new project tag. When the project type is subsequently determined, once the identification field is detected, it can be determined that the project is a project that is planned and constructed from scratch, that is, a new project. If the corresponding "new project tag" is not found when checking the project to be developed, it will be classified as an existing project. By determining the type of the project to be developed based on whether there is a "new project tag", accurate prerequisites can be provided for the subsequent project development process, so that the development work can be carried out more targeted.

[0041] S120. Generate a base module and a business module for the project to be developed according to the project type.

[0042] Among them, the base module is used to provide the basic operating environment and general functional support for the project, such as determining the programming language framework used by the project, basic database connection configuration, general permission management logic, etc. Business modules are functional units divided according to the specific business needs of the project. For example, in an e-commerce project, business modules may include user registration and login modules, product display modules, shopping cart modules, order processing modules, etc. Each business module is responsible for completing a specific business function in the project. They implement their respective functions based on the base module and work together to complete the business process of the entire project.

[0043] Figure 2 A flowchart of a modular project development method is provided for the first embodiment of the present invention, wherein step S120 mainly includes the following steps S121 to S123:

[0044] S121. When the project type is a new project, a base warehouse and a template warehouse are obtained, wherein the base warehouse includes various candidate base templates, and the template warehouse includes various candidate business templates.

[0045] Among them, the base warehouse stores various alternative base templates, which are pre-designed and developed based on previous project experience and general project architecture requirements. They cover the basic framework elements that may be required by different types of projects, such as common programming language frameworks, database connection methods, basic permission management logic and other basic functional parts. By providing a variety of alternative base templates, the needs of new projects under different technology selections and architecture planning can be met. Similarly, the template warehouse contains various alternative business templates. These business templates are formed after abstraction and refinement of various common business functions. For example, when developing an e-commerce project, there may be user registration and login business templates, product display business templates, shopping cart business templates, etc. Different industries and different types of projects have their typical business needs. By organizing and storing business needs in the form of templates, it is convenient to quickly obtain and adapt the corresponding business module construction when developing new projects.

[0046] S122: Display the base warehouse and the template warehouse to the user to obtain the target base template and the target business template selected by the user.

[0047] Among them, users refer to members of the project development team, such as architects, developers, etc. Displaying the base warehouse and template warehouse to users allows users to choose from a large number of alternative base templates and alternative business templates according to the actual situation of the new project. For example, if the new project plans to use a specific programming language and has high requirements for database performance, the user can select a matching target base template from the base warehouse, which may have better performance in the application of the selected programming language and database optimization. For business modules, if the new project is an online education platform, users can select relevant target business templates such as course display, student registration and login, and learning progress tracking from the template warehouse to meet the core needs of the online education business. By allowing users to participate in the selection, it can ensure that the generated base modules and business modules are more in line with the specific requirements of the new project, and improve the pertinence and efficiency of project development.

[0048] S123. Acquire secondary development information, and combine the target base template, the target business template, and the secondary development information to generate a base module and a business module.

[0049] It can be known that although the target base template and target business template are selected from the base warehouse and template warehouse, these templates may only meet some basic requirements of the new project. New projects often have some unique requirements or need to be further refined and improved according to specific circumstances. Therefore, it is necessary to obtain secondary development information. For example, after selecting a base template and related business templates for a general e-commerce project, the secondary development information may include the need to add a special promotional activity function module, or have specific requirements for the style of product display, etc. Combining the target base template, target business template and secondary development information means integrating the needs of secondary development into the selected template, and finally generating base modules and business modules that can fully meet the needs of the new project, which not only utilizes the versatility and convenience of existing templates, but also meets the personalized needs of the project through secondary development information.

[0050] Optionally, after generating the base module and the business module according to the project type, the method further includes: developing and maintaining the base module and the business module according to a preset cycle, wherein the development and maintenance includes code specification maintenance, version control maintenance and dependency management maintenance.

[0051] It should be noted that with the changes in business needs, the update of technology, and the improvement of project performance and stability requirements, the base module and business module need to be continuously developed and maintained according to the preset cycle. The preset cycle can be determined based on factors such as the characteristics of the project and the speed of business development, such as weekly, monthly or quarterly. By carrying out maintenance work regularly, problems in the module can be discovered and solved in a timely manner, ensuring the normal operation of the project and enabling it to continuously adapt to new situations.

[0052] Among them, code standard maintenance can keep the code readable and maintainable. As the project develops, different developers may modify and expand the base module and business module. Following a unified code standard can ensure the readability of the code, that is, no matter who views the code, they can quickly understand its logic and function. For example, unified naming conventions, code indentation formats, etc., can make the code structure clear, which is convenient for subsequent developers to maintain and add new functions. In addition, code standard maintenance can also avoid code smells and potential errors. Strict implementation of code standards can help discover and correct some code writing habits that may cause problems. For example, resources are not released correctly, and the nested logic is overly complex. By regularly checking and maintaining code specifications, the quality of the code can be improved, thereby ensuring the stable operation of the module.

[0053] Version control maintenance refers to recording the content, time, and personnel of each modification of the base module and business module through version control tools such as Git. When a problem occurs in the project, you can quickly locate which version introduced the problem by viewing the version history, which facilitates troubleshooting and repair.

[0054] Specifically, the base module and business module will depend on other libraries, frameworks or components during the development of new projects. Over time, the dependent objects may be updated, and the updated versions may be incompatible with existing modules. Dependency management and maintenance is to regularly check the dependencies to ensure that they are still compatible with the modules.

[0055] S130: Deploy a base module, and dynamically deploy a service module based on the deployed base module.

[0056] Deployment refers to installing the developed module into the corresponding operating environment so that it can run normally in the environment and provide services for the actual use of the project. Dynamic deployment is a deployment method that can flexibly add, update or delete business modules according to actual needs during the project operation. It allows rapid response to business changes without affecting the overall operation of the project. For example, when a temporary business function needs to be added, the corresponding business module can be quickly deployed and easily removed after the activity ends, which improves the flexibility and maintainability of the project.

[0057] Optionally, dynamically deploying business modules based on the deployed base module includes: obtaining a business deployment command and determining each business type corresponding to the business module, wherein the business deployment command includes a target business type; matching the business module through the business deployment command to extract a target business module corresponding to the target business type from the business module; and deploying the target business module based on the deployed base module.

[0058] In the actual project operation environment, business modules are dynamically deployed through business deployment commands. Business deployment commands can be issued by system administrators, operation and maintenance personnel, or through automated deployment tools according to business needs. Business modules are functional units divided to achieve different business functions in the project, and each business module corresponds to a specific business type. By determining each business type, it is convenient to accurately find the target business module to be deployed according to the business deployment command.

[0059] Specifically, after receiving the business deployment command, the controller will compare the target business type in the command with the business types of each determined business module one by one. For example, if the target business type in the business deployment command is "limited-time discount business", the controller will search for the module with the business type of "limited-time discount business" in all the divided e-commerce business modules, and determine it as the target business module. The matching mechanism can ensure that during the dynamic deployment process, the business module that meets the current business needs can be accurately found, avoiding the situation of erroneous deployment of other irrelevant business modules, thereby ensuring the accurate launch of business functions and the normal operation of the project.

[0060] Furthermore, during the deployment process, the target business module will interact with the base module, using the database connection provided by the base module to store and obtain relevant business data, and using the permission management function of the base module to ensure that only authorized users can access and operate the relevant content of the business module. Through the dynamic deployment method based on the base module, the target business module can be smoothly integrated into the entire project system, realize its specific business functions, and the entire project can maintain a stable and coordinated operating state.

[0061] The technical solution of the embodiment of the present invention can better adapt to various project requirements by distinguishing between new projects and existing projects and adopting different module generation strategies. When the project to be developed is a new project, the user is provided with a choice of a base warehouse and a template warehouse, and combined with secondary development information, it can fully meet the personalized needs of the user and make the developed project more suitable for actual use scenarios. Selection based on existing templates and combining secondary development reduce the workload of designing and developing from scratch, thereby reducing costs. By first deploying the base module and then dynamically deploying the business module based on it, the allocation of resources is more reasonable and efficient, and the resource utilization rate is improved. The modular development method reduces the overall complexity and uncertainty of the project, reduces the risk of failure of the entire project due to local problems, and makes maintenance and upgrade work more targeted through clear module division, reducing maintenance costs and difficulties.

[0062] Embodiment 2

[0063] Figure 3 This is a flowchart of a modular project development method provided in the second embodiment of the present invention. This embodiment adds a specific process of determining the base module and the business module when the project type is an existing project on the basis of the above-mentioned first embodiment. Among them, the specific contents of steps S210 and S260 are roughly the same as steps S110 and S130 in the first embodiment, so they will not be repeated in this embodiment. Figure 3 As shown, the method includes:

[0064] S210: Acquire the project to be developed, and determine the project type of the project to be developed, wherein the project type includes a new project and an existing project.

[0065] Optionally, determining the project type of the project to be developed includes: judging whether the project to be developed has a new project tag, and if so, determining the project type to be a new project; otherwise, determining the project type to be an existing project.

[0066] S220. When the project type is an existing project, determine the startup class in the project to be developed according to the specified field.

[0067] It should be noted that in existing projects, you can identify the project startup entry by specifying fields. For example, in a Java project, there may be a class where a specific main method is marked as a startup class. By searching these specified fields, you can accurately locate the startup class in the project to be developed.

[0068] S230: The class associated with the startup class in the project to be developed is used as a base class, and the other classes except the base class are used as business classes.

[0069] Specifically, after determining the startup class, you can follow the code logic and dependencies of the project to find the classes associated with the startup class. For example, the startup class may rely on some classes for loading configuration files, initializing database connections, and processing system permissions. After clarifying the base class, the remaining classes are divided into business classes. Business classes are mainly responsible for completing various specific business operations in the project, so they are distinguished from the entire project as business classes to facilitate further splitting and optimization of business functions.

[0070] S240: Split the business class according to business requirements to generate sub-business classes.

[0071] Specifically, the controller will also split the business class according to the current business needs. By splitting, the function of each sub-business class can be made clearer and more single, which is convenient for subsequent development, maintenance and expansion, and can also better meet new business needs.

[0072] S250: Generate a base module according to the base class, and generate a service module according to the sub-service class.

[0073] Specifically, generating a base module according to a determined base class means integrating and encapsulating the basic functions represented by the base class to form a relatively independent module that can provide a stable basic operating environment for the entire project.

[0074] Similarly, by integrating and encapsulating the specific business functions represented by each sub-business class, a business module can also be generated. Each sub-business class has its own specific business functions. After combining them into business modules, these business functions can be implemented in the project. Through modularization, the generated business modules are more flexible and can better meet the changes in different business needs.

[0075] Optionally, after generating the base module and the business module according to the project type, the method further includes: developing and maintaining the base module and the business module according to a preset cycle, wherein the development and maintenance includes code specification maintenance, version control maintenance and dependency management maintenance.

[0076] S260: Deploy a base module, and dynamically deploy a business module based on the deployed base module.

[0077] Optionally, dynamically deploying business modules based on the deployed base module includes: obtaining a business deployment command and determining each business type corresponding to the business module, wherein the business deployment command includes a target business type; matching the business module through the business deployment command to extract a target business module corresponding to the target business type from the business module; and deploying the target business module based on the deployed base module.

[0078] The technical solution of the embodiment of the present invention can better adapt to various project requirements by distinguishing new projects from existing projects and adopting different module generation strategies. When the project to be developed is an existing project, the startup class and related classes are determined by analyzing the existing code, making full use of existing code resources to avoid repeated development. By splitting complex business classes into sub-business classes, the development work is more detailed and easier to manage, reducing the complexity of development. By flexibly splitting business classes to adapt to new business needs, the project can better cope with business adjustments and expansions.

[0079] Embodiment 3

[0080] Figure 4 This is a schematic diagram of the structure of a modular project development device provided in Embodiment 3 of the present invention. Figure 4 As shown, the device includes: a project type determination module 310, which is used to obtain a project to be developed and determine the project type of the project to be developed, wherein the project type includes a new project and an existing project;

[0081] A base and business generation module 320, used to generate a base module and a business module of a project to be developed according to the project type;

[0082] The project deployment module 330 is used to deploy the base module and dynamically deploy the business module based on the deployed base module.

[0083] Optionally, the project type determination module 310 is specifically used to determine whether the project to be developed has a new project tag, and if so, determine the project type to be a new project; otherwise, determine the project type to be an existing project.

[0084] Optionally, the base and business generation module 320 specifically includes: a new project processing unit, used to: when the project type is a new project, obtain the base warehouse and the template warehouse, wherein the base warehouse includes various alternative base templates, and the template warehouse includes various alternative business templates; display the base warehouse and the template warehouse to the user to obtain the target base template and the target business template selected by the user; obtain secondary development information, and combine the target base template, the target business template and the secondary development information to generate a base module and a business module.

[0085] Optionally, the base and business generation module 320 specifically includes: an existing project processing unit, used to: when the project type is an existing project, determine the startup class in the project to be developed according to the specified field; use the class associated with the startup class in the project to be developed as the base class, and use other classes except the base class as the business class; split the business class according to business needs to generate sub-business classes; generate a base module according to the base class, and generate a business module according to the sub-business class.

[0086] Optionally, the device also includes: a development and maintenance module, which is used to develop and maintain the base module and the business module according to a preset cycle after generating the base module and the business module according to the project type, wherein the development and maintenance includes code specification maintenance, version control maintenance and dependency management maintenance.

[0087] Optionally, the project deployment module 330 is specifically used to: obtain a business deployment command and determine each business type corresponding to the business module, wherein the business deployment command includes a target business type; match the business module through the business deployment command to extract a target business module corresponding to the target business type from the business module; and deploy the target business module based on the deployed base module.

[0088] The technical solution of the embodiment of the present invention can better adapt to various project requirements by distinguishing new projects from existing projects and adopting different module generation strategies. By first deploying the base module and then dynamically deploying the business module based on it, the allocation of resources is more reasonable and efficient, and the resource utilization rate is improved. The modular development method reduces the overall complexity and uncertainty of the project, reduces the risk of failure of the entire project due to local problems, and makes maintenance and upgrade work more targeted through clear module division, reducing maintenance costs and difficulties.

[0089] A modular project development device provided in an embodiment of the present invention can execute a modular project development method provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

[0090] Embodiment 4

[0091] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0092] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0093] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0094] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a modular project development method.

[0095] In some embodiments, a modular project development method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the modular project development method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform a modular project development method in any other appropriate manner (e.g., by means of firmware).

[0096] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0097] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0098] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0099] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0100] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0101] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0102] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0103] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A modular project development method, characterized in that: include: Acquire the project to be developed and determine the project type of the project to be developed, wherein the project type includes new projects and existing projects; Generate a base module and a business module for the project to be developed according to the project type; The base module is deployed, and the service module is dynamically deployed based on the deployed base module.

2. The method according to claim 1, characterized in that The project type of the project to be developed includes: Determine whether the project to be developed has a new project tag, and if so, determine that the project type is a new project; Otherwise, determine that the project type is a stock project.

3. The method according to claim 1, characterized in that The base module and business module of the project to be developed are generated according to the project type, including: When the project type is a new project, a base warehouse and a template warehouse are obtained, wherein the base warehouse includes various candidate base templates, and the template warehouse includes various candidate business templates; Displaying the base warehouse and the template warehouse to the user to obtain the target base template and target business template selected by the user; The secondary development information is obtained, and the target base template, the target service template and the secondary development information are combined to generate a base module and a service module.

4. The method according to claim 1, characterized in that: The base module and business module of the project to be developed are generated according to the project type, including: When the project type is a stock project, determining the startup category in the project to be developed according to the specified field; The class associated with the startup class in the project to be developed is used as a base class, and the other classes except the base class are used as business classes; Splitting the business class according to business requirements to generate sub-business classes; A base module is generated according to the base class, and a service module is generated according to the sub-service class.

5. The method according to claim 1, characterized in that After generating the base module and the business module according to the project type, the method further includes: The base module and the business module are developed and maintained according to a preset cycle, wherein the development and maintenance includes code specification maintenance, version control maintenance and dependency management maintenance.

6. The method according to claim 3 or 4, characterized in that: The dynamically deploying service modules based on the base module deployment includes: Obtaining a service deployment command and determining each service type corresponding to the service module, wherein the service deployment command includes a target service type; Matching the service modules through the service deployment command to extract a target service module corresponding to the target service type from the service modules; The target service module is deployed based on the deployed base module.

7. A modular project development device, characterized in that: include: A project type determination module, used to obtain a project to be developed and determine the project type of the project to be developed, wherein the project type includes a new project and an existing project; A base and business generation module, used to generate a base module and a business module of a project to be developed according to the project type; The project deployment module is used to deploy the base module and dynamically deploy the business module based on the deployed base module.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1 to 6.

9. A computer storage medium, characterized in that The computer storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method according to any one of claims 1 to 6 when executed.

10. A computer program product, characterized in that The computer program product comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 6.