fixed readme wrong content

This commit is contained in:
chengpu 2023-03-31 11:21:34 +08:00
parent 22ae354885
commit 6b8b05a9f6
2 changed files with 8 additions and 15 deletions

View File

@ -18,16 +18,15 @@
请在本地 clone 该项目,并确保具备 Java 17 环境。 请在本地 clone 该项目,并确保具备 Java 17 环境。
### 构建项目 ### 构建项目
由于前端是以源码的形式存储与本项目中需要使用yarn进行编译后成为当前项目的资源文件才能被正确访问 由于前端是以源码的形式存储与本项目中需要使用yarn进行编译后成为当前项目的资源文件才能被正确访问,在`cloud-native-app-initializer` 目录下执行
```shell ```shell
mvn process-sources mvn clean install
``` ```
此步骤执行后,编译后的前端文件,会被复制到 `initializer-page/target/classes/static` 目录下 此步骤执行后,对项目模块进行编译构建。其中,编译后的前端文件,会被复制到 `initializer-page/target/classes/static` 目录下
### 启动项目 ### 启动项目
进入`initializer-generator` 模块,执行以下命令启动应用: 进入`initializer-start` 模块,执行以下命令启动应用:
```shell ```shell
cd initializer-generator
mvn spring-boot:run mvn spring-boot:run
``` ```
在浏览器中,输入 http://127.0.0.1:7001/bootstrap.html 即可使用脚手架项目进行工程构建。 在浏览器中,输入 http://127.0.0.1:7001/bootstrap.html 即可使用脚手架项目进行工程构建。

View File

@ -16,21 +16,15 @@ Please clone the project locally and make sure you have a Java 17 environment.
### Build project ### Build project
Make sure you have python installed on your computer. 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:
In the project root directory, execute the following commands to install `Node` and `Yarn`:
```shell ```shell
mvn compile -P install-yarn mvn clean install
```
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
``` ```
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 ### 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 ```shell
cd initializer-generator
mvn spring-boot:run mvn spring-boot:run
``` ```
In the browser, enter `http://127.0.0.1:7001/bootstrap.html` to use the initializer project for project bootstrap. In the browser, enter `http://127.0.0.1:7001/bootstrap.html` to use the initializer project for project bootstrap.