Project creation method and device, equipment and medium

By obtaining and configuring the target project template in the project scaffolding, the problem that the general framework cannot meet development needs is solved, enabling rapid and standardized project creation and improving development efficiency and consistency.

CN120994186APending Publication Date: 2025-11-21CHINA ELECTRONICS CLOUD DIGITAL INTELLIGENCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511033747.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-25
Publication Date
2025-11-21

AI Technical Summary

Technical Problem

Existing scaffolding tools generate project frameworks that lack the features and functions necessary for business systems, failing to meet project development needs and leading to problems such as inconsistent styles, chaotic processes, and complex infrastructure configurations during development.

Method used

A method for creating projects is provided, which obtains the project name, description and target project template in the project scaffold by importing the prompts package. The template contains infrastructure, development specifications and submission specifications. The target project template is downloaded and decompressed via Axios and the configuration file is updated automatically.

Benefits of technology

Quickly configure project templates that conform to the company's technical standards, reduce initial configuration time, improve development efficiency and standardization, ensure project consistency, reduce the risk of manual intervention, and improve code quality and maintainability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120994186A_ABST
    Figure CN120994186A_ABST
Patent Text Reader

Abstract

The invention relates to a project creation method and device, equipment and a medium. The method comprises the following steps: entering a project initialization process of a preset project scaffold; creating and configuring an initialization file in a project scaffold, and obtaining a project name, a project description and a target project template of a target project by introducing a prompts package; wherein the target project template comprises an infrastructure, a development specification and a submission specification matched with the target project; downloading and decompressing the target project template; and updating the configuration file of the target project according to the project name and the project description. According to the method, the target project template meeting the technical standard and specification can be quickly configured, the initial configuration time and energy investment of the target project are reduced, and the development efficiency and standardization are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to a method, apparatus, device and medium for creating a project. Background Technology

[0002] During the development of a business system, the project initiation phase typically involves technology selection and business framework construction. To improve efficiency, commercially available scaffolding tools are generally used to generate the project's initial framework. However, these scaffolding tools are quite generic, and the resulting frameworks often lack the features and functionalities necessary for the business system, failing to meet the project's development requirements. Summary of the Invention

[0003] To address the aforementioned technical problems, this disclosure provides a project creation method, apparatus, equipment, and medium.

[0004] According to one aspect of this disclosure, a project creation method is provided, the method comprising:

[0005] Enter the preset project initialization process for the project scaffolding;

[0006] An initialization file is created and configured in the project scaffolding, and the project name, project description and target project template of the target project are obtained by importing the prompts package; wherein, the target project template includes the infrastructure, development specifications and submission specifications that match the target project;

[0007] Download and extract the target project template;

[0008] Update the target project's configuration file based on the project name and project description.

[0009] According to another aspect of this disclosure, a project creation apparatus is also provided, the apparatus comprising:

[0010] The process entry module is used to enter the preset project scaffolding project initialization process;

[0011] The file creation module is used to create and configure initialization files in the project scaffolding. It obtains the target project's name, description, and template by importing the prompts package. The target project template includes the infrastructure, development specifications, and submission specifications that match the target project.

[0012] The template configuration module is used to download and decompress the target project template;

[0013] The file update module is used to update the configuration file of the target project based on the project name and the project description.

[0014] According to another aspect of this disclosure, an electronic device is also provided, the electronic device comprising:

[0015] processor;

[0016] Memory used to store the processor's executable instructions;

[0017] The processor is configured to read the executable instructions from the memory and execute the instructions to implement the above method.

[0018] According to another aspect of this disclosure, a computer-readable storage medium is also provided, the storage medium storing a computer program for performing the above-described method.

[0019] The technical solution provided in this disclosure has the following advantages compared with the prior art:

[0020] This disclosure relates to a project creation method, apparatus, device, and medium. The method includes: entering a project initialization process within a preset project scaffold; creating and configuring an initialization file within the project scaffold; obtaining the target project's name, project description, and target project template by importing the prompts package; wherein the target project template includes the infrastructure, development specifications, and submission specifications matching the target project; downloading and decompressing the target project template; and updating the target project's configuration file based on the project name and project description.

[0021] In this technical solution, the initialization file configures the initialization logic of the target project. By importing the `prompts` package, it interacts with the user to obtain project information such as the project name, project description, and target project template. The target project template includes the infrastructure, development specifications, and submission specifications that match the target project. Downloading and unzipping this template allows for rapid configuration of a target project that conforms to the company's technical standards and specifications. Developers do not need to configure the target project from scratch, greatly reducing the time and effort invested in the initial configuration. As a result, developers can quickly begin project development and focus on implementing core functions, improving overall development efficiency. Updating the target project's configuration file based on the project name and description ensures that the target project's configuration information is consistent with user requirements. These automated operations reduce the risk of manual intervention and improve the standardization of development. Attached Figure Description

[0022] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0023] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 A flowchart of the project creation method described in the embodiments of this disclosure;

[0025] Figure 2 An architecture diagram created for the project described in the embodiments of this disclosure;

[0026] Figure 3 This is a schematic diagram of the project template described in the embodiments of this disclosure;

[0027] Figure 4 A schematic diagram of the structure of the project creation apparatus described in the embodiments of this disclosure;

[0028] Figure 5 This is a schematic diagram of the structure of the electronic device described in an embodiment of this disclosure. Detailed Implementation

[0029] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.

[0030] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.

[0031] In the development of business systems, using generic frameworks generated by commercially available scaffolding often lacks the essential features and functionalities required by the business system, failing to meet the project's development needs. For example:

[0032] Development / Commit Standards: Every company has a unique technical culture and processes, and development standards and commit processes usually have specific requirements. General-purpose frameworks often do not integrate company-customized development / commit standards, such as coding style, commit message format, branch management strategies, etc. This can lead to inconsistent styles or chaotic processes during the coding process, increasing communication costs and affecting code maintainability.

[0033] Infrastructure: During development, company-specific infrastructure and toolchains are typically used, such as UI component libraries, front-end routing management, state management, API request libraries, and automated build tools. General-purpose frameworks cannot pre-configure these front-end technology stacks and infrastructures, requiring developers to reconfigure or integrate these services, increasing the initial configuration workload and development complexity of the project.

[0034] Flexible configuration and scalability: Business systems often need to adjust their configurations flexibly according to business changes, while the configuration capabilities of general frameworks are relatively basic and not suitable for rapidly changing business needs.

[0035] To address at least one of the aforementioned problems, embodiments of this disclosure provide a project creation method, apparatus, device, and medium. Based on the fundamental environment provided by Node.js, this disclosure enables the rapid creation of project templates according to different project needs and technology stacks.

[0036] Figure 1 This is a flowchart illustrating a project creation method provided in an embodiment of the present disclosure. This method can be executed by a project creation device, which can be implemented using software and / or hardware. Figure 1 As shown, a project creation method may include the following steps.

[0037] S102, enter the preset project initialization process for the project scaffolding.

[0038] This embodiment may include: receiving a project initialization command from a target user via a command line or interactive interface; and entering the project initialization process of the project scaffolding according to the project initialization command.

[0039] Reference Figure 2 The project creation architecture diagram shown in this embodiment illustrates how a convenient project scaffold can be pre-developed. The project scaffold is the basic structure of the project, typically containing the basic directory structure and initial files. The system receives project initialization commands from the target user via command line or interactive interface; then, based on these commands, it enters the project initialization process within the project scaffold. This embodiment simplifies the initialization process of the target project through command line or interactive interface, and allows for rapid project startup based on a standardized process, avoiding repetitive work.

[0040] The project initialization command mentioned above can include the target user's username, which is a unique identifier used to identify the target user. In version control tools such as Git, the username is associated with the user's commit history, ensuring clear ownership of each commit.

[0041] S104. Create and configure an initialization file in the project scaffolding. Obtain the target project's name, description, and template by importing the prompts package. The target project template includes the infrastructure, development specifications, and submission specifications that match the target project.

[0042] In this embodiment, an initialization file is created and configured in the project scaffolding. This initialization file can be a file named init.js, which contains the initialization logic of the target project.

[0043] And, in Figure 2 The interactive layer of the architecture shown imports the `prompts` package, a Node.js library used for interaction with the user via the command line. Based on this, the `prompts` package is imported to interact with the user and collect project information input by the user in an interactive manner. This project information includes: project name, project description, and target project template.

[0044] The project name (name) is used to specify the name of the target project to be created, which will be used to initialize the project name and directory information of the target project.

[0045] The project description provides a brief overview of the target project, helping the team quickly understand its main functions and objectives.

[0046] The target project template (branch) allows users to select the desired project template from multiple project templates within the GitLab repository.

[0047] Regarding GitLab repositories and the project templates they manage, this embodiment may include: managing different project templates through different branches of a GitLab repository; wherein, the project template includes: infrastructure, development specifications, and commit specifications.

[0048] In this embodiment, commonly used project templates can be collected and organized in advance. These templates include at least: mini-program templates, H5 templates, React templates, Vue2 templates, Vue3 templates, and Angular templates. At the data layer, each project template is stored in a different branch of the GitLab repository ({repository}) to ensure the independence and flexibility of managing different project templates, facilitating selection and use.

[0049] Each project template integrates company-specific infrastructure (such as logging systems, database configurations, and API interfaces), development standards (such as coding style, directory structure, and functional modularization), and commit standards (such as commit message formats and branch management). The data layer can also include low-level basic components, low-level component libraries, high-level component libraries, and utility classes. These project templates determine the technology stack and framework foundation for each project within the company, ensuring that each project conforms to company standards during initialization, maximizing development efficiency and code consistency, and minimizing unnecessary communication and refactoring.

[0050] Git is a distributed version control system used to track changes to computer files, especially source code files. It allows multiple people to collaborate on development, manage project history, and support branching and merging operations, ensuring that code versions are traceable and manageable during the development process.

[0051] The GitLab repository ({repository}) used to manage the project template described above is a place to store code and its history. A GitLab repository can contain all files of a project and their version change history. Developers can interact with the repository through operations such as cloning, pushing, and pulling. For example, GitLab repositories are divided into local repositories and remote repositories.

[0052] This example manages different project templates through different branches of the GitLab repository. A branch is a version control feature used for parallel development. In Git, branches allow developers to work independently without affecting the main codeline. Each branch can contain its own commit history until development is complete and merged back into the main branch.

[0053] Based on the multiple project templates in the GitLab repository mentioned above, this implementation obtains the template selection command for the target user by introducing the prompts package, and selects the target project template that meets the requirements of the target project from the multiple project templates in the GitLab repository according to the template selection command.

[0054] Once a suitable target project template is selected, the target project can be quickly launched according to the standardized process, avoiding repetitive work.

[0055] S106, Download and extract the target project template.

[0056] This step may include: using Axios to request and download the compressed package of the target project template from the preset GitLab repository; and using a compression file processing tool to decompress the compressed package of the target project template to the preset directory to obtain the target project template.

[0057] Combination Figure 2 In one specific example, Axios can be used at the network layer to request the GitLab API (e.g., https: / / gitlab.example.com / {username} / {repository} / - / archive / {branch}) to download a compressed package (e.g., a ZIP file) of the selected target project template.

[0058] Axios is a Promise-based HTTP client used to send HTTP requests in browsers and Node.js environments. Axios supports various request types, including GET and POST, and provides features such as response data processing, error handling, and request interception. Axios is widely used in web applications and API requests.

[0059] Then, adm-zip is used as a compression tool to decompress the target project template ZIP package to the user-specified directory. The decompressed target project template can be referenced. Figure 3 Example. Adm-zip is a Node.js library for handling ZIP format compressed files. It allows creating, decompressing, and manipulating ZIP files within a Node.js environment, and is commonly used for file packaging and transfer.

[0060] The above embodiments can automate the acquisition and configuration of target project templates, avoiding manual operations and improving the efficiency and accuracy of the target project creation process.

[0061] This embodiment, after downloading and unzipping the target project template, may further include deleting the GIT folder corresponding to the target project template in the GitLab repository. This avoids carrying over historical Git records into the new target project.

[0062] S108, Update the target project's configuration file based on the project name and project description.

[0063] This embodiment automatically updates the target project's configuration file (which can be a package.json file) based on the user-input project name and description. Updating the target project's configuration file according to the project name and description ensures that the target project's configuration information matches the user's requirements. These automated operations reduce the risk of manual intervention and improve the standardization of development.

[0064] After updating the target project's configuration file according to the project name and project description, the method provided in this embodiment further includes: generating a prompt message through a command line or interactive interface; wherein the prompt message is used to notify the user that the target project has been successfully initialized.

[0065] Specifically, after completing all steps, the system will automatically download, decompress, and update the configuration of the target project template. Finally, a notification message will be generated via command line or interface to inform the user that the target project has been successfully initialized and is ready, allowing the user to directly enter the development phase, thus saving configuration and initialization time when starting the target project.

[0066] In summary, the project creation method provided in this embodiment includes: entering the project initialization process of a preset project scaffold; creating and configuring an initialization file in the project scaffold, and obtaining the project name, project description, and target project template of the target project by importing the prompts package; wherein, the target project template includes the infrastructure, development specifications, and submission specifications that match the target project; downloading and decompressing the target project template; and updating the target project's configuration file according to the project name and project description.

[0067] In this technical solution, the initialization file configures the initialization logic of the target project. By importing the `prompts` package, it interacts with the user to obtain project information such as the project name, project description, and target project template. The target project template includes the infrastructure, development specifications, and submission specifications that match the target project. Downloading and unzipping this template allows for rapid configuration of a target project that conforms to the company's technical standards and specifications. Developers do not need to configure the target project from scratch, greatly reducing the time and effort invested in the initial configuration. As a result, developers can quickly begin project development and focus on implementing core functions, improving overall development efficiency. Updating the target project's configuration file based on the project name and description ensures that the target project's configuration information is consistent with user requirements. These automated operations reduce the risk of manual intervention and improve the standardization of development.

[0068] In addition, the project templates in the GitLab repository integrate the company's internal infrastructure, development standards, and submission standards, which can effectively avoid repetitive work or inconsistencies that may occur during the initial configuration of the project; this standardized and automated configuration method reduces the complexity encountered by developers during the project configuration process.

[0069] All generated projects automatically follow the company's unique development and submission guidelines, ensuring uniformity and consistency in the development process. This not only improves team collaboration efficiency but also reduces potential problems caused by inconsistent guidelines, ensuring code quality and maintainability.

[0070] By managing different project templates through GitLab repositories, you can flexibly choose the appropriate template according to project needs, avoiding the duplication of creating and configuring similar projects. In addition, the management of project templates also facilitates the later iteration and updating of different project templates, ensuring that each project keeps the latest and best technology stack configuration, thus facilitating the management and reuse of project templates.

[0071] This solution automates the project template generation process, reducing the error rate and time cost of manual configuration. At the same time, it ensures that each generated project conforms to the company's unified technology stack and development specifications, thereby improving the stability and reliability of the overall development process and saving resources and reducing errors.

[0072] In short, the project creation method provided in this disclosure effectively addresses the shortcomings of generic scaffolding-based project generation, significantly reducing the workload and development complexity of initial project configuration. The project templates in this solution integrate the company's infrastructure and retain necessary development and submission standards, effectively improving the maintainability and scalability of business systems.

[0073] Corresponding to the project creation method provided in the foregoing embodiments, this embodiment provides a project creation apparatus. For example... Figure 4 As shown, the project creation device may include the following modules.

[0074] The process entry module 210 is used to enter the preset project initialization process of the project scaffolding.

[0075] The file creation module 220 is used to create and configure initialization files in the project scaffolding. It obtains the project name, project description, and target project template of the target project by importing the prompts package. The target project template includes the infrastructure, development specifications, and submission specifications that match the target project.

[0076] Template configuration module 230 is used to download and decompress the target project template;

[0077] The file update module 240 is used to update the configuration file of the target project according to the project name and the project description.

[0078] The device provided in this embodiment has the same implementation principle and technical effect as the aforementioned method embodiment. For the sake of brevity, any parts not mentioned in the device embodiment can be referred to the corresponding content in the aforementioned method embodiment.

[0079] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Figure 5 As shown, the electronic device 300 includes one or more processors 301 and memory 302.

[0080] The processor 301 may be a central processing unit (CPU) or other form of processing unit with data processing and / or instruction execution capabilities, and may control other components in the electronic device 300 to perform desired functions.

[0081] The memory 302 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 301 may execute the program instructions to implement the project creation method of the embodiments of this disclosure described above and / or other desired functions. Various contents such as input signals, signal components, and noise components may also be stored in the computer-readable storage medium.

[0082] In one example, the electronic device 300 may also include an input device 303 and an output device 304, which are interconnected via a bus system and / or other forms of connection mechanism (not shown).

[0083] In addition, the input device 303 may also include, for example, a keyboard, a mouse, etc.

[0084] The output device 304 can output various information to the outside, including determined distance information, direction information, etc. The output device 304 may include, for example, a display, a speaker, a printer, and a communication network and its connected remote output devices, etc.

[0085] Of course, for the sake of simplicity, Figure 5 Only some of the components of the electronic device 300 relevant to this disclosure are shown, omitting components such as buses, input / output interfaces, etc. In addition, the electronic device 300 may include any other suitable components depending on the specific application.

[0086] Furthermore, this embodiment also provides a computer-readable storage medium storing a computer program for executing the above-described project creation method.

[0087] The present disclosure provides a computer program product for a project creation method, apparatus, electronic device, and medium, including a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments. For specific implementation details, please refer to the method embodiments, which will not be repeated here.

[0088] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0089] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not intended to be limited.

[0090] The embodiments described herein are intended to be adapted to conform to the principles and novelty disclosed herein.

[0091] The widest range with consistent characteristics.

Claims

1. A project creation method, characterized in that, The method includes: Enter the preset project initialization process for the project scaffolding; An initialization file is created and configured in the project scaffolding, and the project name, project description and target project template of the target project are obtained by importing the prompts package; wherein, the target project template includes the infrastructure, development specifications and submission specifications that match the target project; Download and extract the target project template; Update the target project's configuration file based on the project name and project description.

2. The method according to claim 1, characterized in that, The project initialization process for entering the preset project scaffolding includes: Receive project initialization commands from the target user via command line or interactive interface; The project initialization process for the project scaffolding is initiated according to the project initialization command.

3. The method according to claim 1, characterized in that, The process of downloading and unzipping the target project template includes: Use Axios to request and download the compressed package of the target project template from the preset GitLab repository; Use a file compression tool to decompress the compressed package of the target project template to a preset directory to obtain the target project template.

4. The method according to claim 1, characterized in that, After downloading and decompressing the target project template, the method further includes: Delete the GIT folder corresponding to the target project template in the GitLab repository.

5. The method according to claim 1, characterized in that, After updating the configuration file of the target project according to the project name and the project description, the method further includes: A prompt message is generated via command line or interactive interface; the prompt message is used to notify the user that the target project has been successfully initialized.

6. The method according to claim 1, characterized in that, The method further includes: Different project templates are managed through different branches of the GitLab repository; the project templates include: infrastructure, development specifications, and submission specifications.

7. The method according to claim 4, characterized in that, The project templates include at least: mini-program templates, H5 templates, React templates, Vue2 templates, Vue3 templates, and Angular templates.

8. A project creation device, characterized in that, The device includes: The process entry module is used to enter the preset project scaffolding project initialization process; The file creation module is used to create and configure initialization files in the project scaffolding. It obtains the target project's name, description, and template by importing the prompts package. The target project template includes the infrastructure, development specifications, and submission specifications that match the target project. The template configuration module is used to download and decompress the target project template; The file update module is used to update the configuration file of the target project based on the project name and the project description.

9. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store the processor's executable instructions; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the method described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a terminal device, cause the terminal device to perform the method as described in any one of claims 1-7.