diff --git a/README.md b/README.md index 4028ed354..ab562478f 100644 --- a/README.md +++ b/README.md @@ -148,12 +148,12 @@ Note: If local debugging is required $ git clone git@github.com:alibaba/Chat2DB.git ``` -- Front-End installation +- Front-End debug ```bash $ cd Chat2DB/chat2db-client -$ npm install # Mounting front-end dependency -$ npm run build:prod # Package js to the source directory on the back end +$ yarn +$ yarn run start:web ``` - Backend debug @@ -163,15 +163,6 @@ $ cd ../chat2db-server $ mvn clean install # maven 3.8 or later needs to be installed $ cd chat2db-server/chat2db-server-start/target/ $ java -jar -Dchatgpt.apiKey=xxxxx chat2db-server-start.jar # To launch the chat application, you need to enter the ChatGPT key for the chatgpt.apiKey. Without entering it, you won't be able to use the AIGC function. -$ # open http://127.0.0.1:10821 to start debug Note: Front-end installation is required -``` - -- Front-End debug - -```bash -$ cd Chat2DB/chat2db-client -$ yarn -$ npm run start:web ``` ## 📑 Documentation diff --git a/README_CN.md b/README_CN.md index 99a0a3933..685fa5e5d 100644 --- a/README_CN.md +++ b/README_CN.md @@ -154,12 +154,12 @@ https://github.com/chat2db/Chat2DB/assets/22975773/b58db908-5768-4a71-aa30-135d2 $ git clone git@github.com:chat2db/Chat2DB.git ``` -- 前端安装 +- 前端调试 ```bash $ cd Chat2DB/chat2db-client -$ npm install # 安装前端依赖 -$ npm run build:prod # 把js打包生成到后端的source目录 +$ yarn +$ yarn run start:web ``` - 后端调试 @@ -169,15 +169,6 @@ $ cd ../chat2db-server $ mvn clean install # 需要安装maven 3.8以上版本 $ cd chat2db-server/chat2db-server-start/target/ $ java -jar -Dchatgpt.apiKey=xxxxx chat2db-server-start.jar # 启动应用 chatgpt.apiKey 需要输入ChatGPT的key,如果不输入无法使用AIGC功能 -$ # 打开 http://127.0.0.1:10821 开启调试 注:需要进行前端安装 -``` - -- 前端调试 - -```bash -$ cd Chat2DB/chat2db-client -$ yarn -$ npm run start:web ``` ## 📑 文档