mirror of
https://gitee.com/pnoker/iot-dc3.git
synced 2026-11-02 11:11:57 +08:00
cc16cd08b62e279ce8fac7b4eafa347bfa6dd131
Every api/*.ts module was hardcoding the same three prefixes
('api/v3/auth', 'api/v3/data', 'api/v3/manager'). Pull them into
API_AUTH_BASE / API_DATA_BASE / API_MANAGER_BASE so the prefix lives
in one place — aligns with the other static-constant files under
src/config/constant/ and makes it trivial to retarget the gateway
mount point or add a new service base.
All 17 api files (including dashboard.ts, which used to declare local
DATA_BASE/MANAGER_BASE) now import from the shared module.
1. Prepare
gitVisual Studio Codenodejs>= 18, recommended to use 22pnpm, install usingcorepack enable && corepack prepare pnpm@latest --activate(ornpm install -g pnpm)
2. Source code
git clone https://github.com/pnoker/iot-dc3-web.git
3. Develop
cd iot-dc3-web
# install
pnpm install
# run
pnpm dev
Description
IoT DC3 是一个基于 Spring Cloud 的 100% 完全开源的、分布式的物联网(IoT)平台,用于快速开发物联网项目和管理物联设备,是一整套物联系统解决方案。
321 MiB
Languages
Java
75.7%
TypeScript
10.4%
Vue
8.3%
PLpgSQL
3.6%
JavaScript
0.9%
Other
1%