# aichat-antdesignx-app-cli

#### 介绍
借助antd design x及开源包aichat-core封装的web端AI聊天助手App（TS版本）

#### 使用步骤

### 1、全局安装
```
npm i aichat-antdesignx-app-cli -g
```

### 2、构建项目

任意目录下执行如下命令即可,其中adxcli为aichat-antdesignx-app-cli的简写。

```
adxcli init adx-chat-app
```

### 3、构建过程

```
     _    _  ____ _           _          _          _   ____            _            __  __       _
  ____ _ _  __        __   _                            _ 
    / \  (_)/ ___| |__   __ _| |_       / \   _ __ | |_|  _ \  ___  ___(_) __ _ _ __ \ \/ /      / \   _ __  _ __       
 / ___| (_) \ \      / /__| | ___ ___  _ __ ___   ___  | |
   / _ \ | | |   | '_ \ / _` | __|____ / _ \ | '_ \| __| | | |/ _ \/ __| |/ _` | '_ \ \  /_____ / _ \ | '_ \| '_ \ _____| |   | | |  \ \ /\ / / _ \ |/ __/ _ \| '_ ` _ \ / _ \ | |
  / ___ \| | |___| | | | (_| | ||_____/ ___ \| | | | |_| |_| |  __/\__ \ | (_| | | | |/  \_____/ ___ \| |_) | |_) |_____| |___| | |   \ V  V /  __/ | (_| (_) | | | | | |  __/ |_|
 /_/   \_\_|\____|_| |_|\__,_|\__|   /_/   \_\_| |_|\__|____/ \___||___/_|\__, |_| |_/_/\_\   /_/   \_\ .__/| .__/      
 \____|_|_|    \_/\_/ \___|_|\___\___/|_| |_| |_|\___| (_)
                                                                          |___/                       |_|   |_|

创建项目：test
√ download for aichat-core-antdesignx-template
安装依赖...
yarn install v1.22.22
warning ..\package.json: No license field
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not 
to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this 
warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > react-json-view@1.21.3" has incorrect peer dependency "react@^17.0.0 || ^16.3.0 || ^15.5.4".
warning " > react-json-view@1.21.3" has incorrect peer dependency "react-dom@^17.0.0 || ^16.3.0 || ^15.5.4".
warning "aichat-core > react-json-view > flux@4.0.4" has incorrect peer dependency "react@^15.0.2 || ^16.0.0 || ^17.0.0".
[4/4] Building fresh packages...
Done in 37.08s.

安装完成：
To get start：
=========================
     cd test
     npm run start 
=========================
    

> aichat-core-antdesignx-template@1.0.0 start
> npm run dev


> aichat-core-antdesignx-template@1.0.0 dev
> vite


  VITE v4.5.14  ready in 2086 ms

  ➜  Local:   http://localhost:3066/
  ➜  Network: http://2.0.0.1:3066/
  ➜  Network: http://192.168.1.148:3066/
  ➜  press h to show help


```

如果安装（yarn）依赖有问题，记得终止下，然后切换到目录下，手动进行安装

### 4、如需升级

如有需要升级脚手架模板，可前往我的B站留言：[西柚配咖啡](https://space.bilibili.com/452968297?spm_id_from=333.1007.0.0)