diff --git a/README-zh.md b/README-zh.md index 97cb8a1..f893b7e 100644 --- a/README-zh.md +++ b/README-zh.md @@ -18,16 +18,15 @@ 请在本地 clone 该项目,并确保具备 Java 17 环境。 ### 构建项目 -由于前端是以源码的形式存储与本项目中,需要使用yarn进行编译后,成为当前项目的资源文件,才能被正确访问: +由于前端是以源码的形式存储与本项目中,需要使用yarn进行编译后,成为当前项目的资源文件,才能被正确访问,在`cloud-native-app-initializer` 目录下执行: ```shell -mvn process-sources +mvn clean install ``` -此步骤执行后,编译后的前端文件,会被复制到 `initializer-page/target/classes/static` 目录下 +此步骤执行后,对项目模块进行编译构建。其中,编译后的前端文件,会被复制到 `initializer-page/target/classes/static` 目录下 ### 启动项目 -进入`initializer-generator` 模块,执行以下命令启动应用: +进入`initializer-start` 模块,执行以下命令启动应用: ```shell -cd initializer-generator mvn spring-boot:run ``` 在浏览器中,输入 http://127.0.0.1:7001/bootstrap.html 即可使用脚手架项目进行工程构建。 diff --git a/README.md b/README.md index de99de4..401eedb 100644 --- a/README.md +++ b/README.md @@ -16,21 +16,15 @@ Please clone the project locally and make sure you have a Java 17 environment. ### Build project -Make sure you have python installed on your computer. - -In the project root directory, execute the following commands to install `Node` and `Yarn`: +Since the front end is stored in the form of source code in this project, it needs to be compiled with yarn to become a resource file of the current project in order to be accessed correctly. Execute in the `cloud-native-app-initializer` directory: ```shell -mvn compile -P install-yarn -``` -In the project root directory, execute the following command to copy the static files to the target of the `initializer-generator` module: -```shell -mvn prepare-package +mvn clean install ``` +After this step is executed, compile and build the project module. Among them, the compiled front-end files will be copied to the `initializer-page/target/classes/static` directory ### Run project -Enter the `initializer-generator` module and execute the following command to start the application: +Enter the `initializer-start` module and execute the following command to start the application: ```shell -cd initializer-generator mvn spring-boot:run ``` In the browser, enter `http://127.0.0.1:7001/bootstrap.html` to use the initializer project for project bootstrap.