pnoker cc16cd08b6 refactor(api): extract gateway base paths to src/config/constant/api.ts
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.
2026-05-02 14:12:17 +08:00
2026-04-30 15:56:04 +08:00

1. Prepare

  • git
  • Visual Studio Code
  • nodejs >= 18, recommended to use 22
  • pnpm, install using corepack enable && corepack prepare pnpm@latest --activate (or npm 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
S
Description
IoT DC3 是一个基于 Spring Cloud 的 100% 完全开源的、分布式的物联网(IoT)平台,用于快速开发物联网项目和管理物联设备,是一整套物联系统解决方案。
Readme
321 MiB
Languages
Java 75.7%
TypeScript 10.4%
Vue 8.3%
PLpgSQL 3.6%
JavaScript 0.9%
Other 1%