You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
:boom: `IoT DC3` `Demo Web UI` 仅供接口调试使用 :boom:
|
|
|
|
|
|
|
|
|
|
:rocket: 非常欢迎广大兴趣爱好者的加入,你的 `Star` 是我们开发的动力 !
|
|
|
|
|
|
|
|
|
|
:seedling: 该 `Web UI` ,需要借助 `DC3` 平台服务,`https://gitee.com/pnoker/iot-dc3` 或 `https://github.com/pnoker/iot-dc3`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
------
|
|
|
|
|
|
|
|
|
|
![](./dc3/images/index.png)
|
|
|
|
|
|
|
|
|
|
## 一、准备
|
|
|
|
|
|
|
|
|
|
- `nodejs` >= 12
|
|
|
|
|
- `git`
|
|
|
|
|
- `Web Storm` 或者 `Visual Studio Code`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 配置国内 `npm` 源
|
|
|
|
|
|
|
|
|
|
> 在用户目录下创建 `.npmrc` 文件,并写入以下内容
|
|
|
|
|
|
|
|
|
|
```txt
|
|
|
|
|
registry=https://registry.npm.taobao.org
|
|
|
|
|
sass_binary_site=https://npm.taobao.org/mirrors/node-sass
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 安装 `yarn`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
npm install -g yarn
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 二、源码
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
git clone https://gitee.com/pnoker/dc3-web.git
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 三、开发
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
cd dc3-web
|
|
|
|
|
|
|
|
|
|
# install
|
|
|
|
|
yarn
|
|
|
|
|
|
|
|
|
|
# run
|
|
|
|
|
yarn run serve
|
|
|
|
|
|
|
|
|
|
# build
|
|
|
|
|
yarn run build
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|