Files
iot-dc3/docs/code/web-ui.md
T

49 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
> **说明**: IOT DC3 本身没有 Web ,该 Demo Web UI 是基于 DC3 接口开发的调试应用,该应用仅供开发、调试和测试接口用途。
>
> 关于 IOT DC3 的管理平台,还在规划和开发阶段,后期开源。
### 构建 Demo Web UI
```bash
git clone https://gitee.com/pnoker/dc3-web.git
cd dc3-web
#这步至关重要,请务必使用 cnpm 进行 install
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install
```
### 启动 Demo Web UI
> **说明**:以下启动方式二选一
- 源码启动
```bash
# run
npm run serve
```
- docker启动
```bash
# build
npm run build
# docker build
cd dc3
docker-compose build
# docker run
docker-compose up -d
```
### 访问 Demo Web UI
- 如果是在源码启动的,直接访问 [http://localhost:8080](http://localhost:8080) 即可进入登陆页面,在idea开发模式,请使用该方式启动 Demo Web UI!
- 如果是在 `docker` 中启动的,那么就访问 [https://localhost](https://localhost) 即可进入登陆页面,点击登陆即可,⚠️请注意是 `https` 哈!