CarpTMS 是一套完全开放的车联网为主的低空经济运营平台。设计目标为支持 5万台 危化与普货车辆监管和调度,预留了 500-1000架无人机 的管理代码。
本项目采用 Apache License 2.0 开源,欢迎大家二次开发并维护好自己的客户,在这个变动的世界里找到一条自己的活路。
| 技术 | 用途 |
|---|---|
| Rust 1.94 | 系统编程语言 |
| Actix-web 4 | Web框架 |
| Tokio | 异步运行时 |
| SQLx | 数据库访问 |
| Redis | 缓存层 |
| PostgreSQL | 主数据库 |
| 技术 | 用途 |
|---|---|
| Vue 3 | 前端框架 |
| TypeScript | 类型安全 |
| Pinia | 状态管理 |
| Element Plus | UI组件库 |
| 技术 | 用途 |
|---|---|
| Docker | 容器化 |
| Kubernetes | 编排 |
| Nginx | 反向代理 |
| Prometheus | 监控 |
| Grafana | 可视化 |
cd My_server
# 安装依赖
cargo build
# 开发模式
cargo run
# 生产模式(CPU AI)
cargo build --release
# GPU加速模式
cargo build --release --features ai-gpu
cd My_client
# 安装依赖
npm install
# 开发模式
npm run dev
# 生产构建
npm run build
# 开发环境(仅核心服务)
podman-compose up -d postgres-primary redis-master carptms-server
# 生产环境(含监控、备份)
podman-compose --profile production --profile monitoring up -d
# 蓝绿部署模式
podman-compose --profile blue-green up -d
# 微服务架构
podman-compose -f podman-compose.microservices.yml up -d
CarpTMS/
├── My_server/ # 后端服务 (Rust)
│ ├── src/
│ │ ├── bin/ # 可执行入口
│ │ ├── video/ # 视频流处理
│ │ ├── domain/ # 领域模型
│ │ ├── bff/ # 前端适配层
│ │ └── ...
│ ├── migrations/ # 数据库迁移
│ └── Cargo.toml
│
├── My_client/ # 前端应用 (Vue)
│ ├── src/
│ │ ├── components/ # Vue组件
│ │ ├── views/ # 页面视图
│ │ └── ...
│ └── package.json
│
├── scripts/ # 部署脚本
├── k8s/ # Kubernetes配置
├── docs/ # 文档
└── LICENSE # Apache 2.0许可证
# 1. 创建数据库
psql -U postgres -c "CREATE DATABASE carptms;"
# 2. 运行迁移
cd My_server
psql -U postgres -d carptms -f migrations/20260101000001_create_vehicles_table.sql
psql -U postgres -d carptms -f migrations/20260101000002_create_orders_tables.sql
# ... 其他迁移文件
# 3. 初始化基础数据
psql -U postgres -d carptms -f ../create_database.sql
database:
host: "localhost"
port: 5432
username: "postgres"
password: "your_password"
name: "carptms"
redis:
host: "localhost"
port: 6379
app:
host: "0.0.0.0"
port: 8080
# 数据库配置
DATABASE_URL=postgres://postgres:password@localhost:5432/carptms
# Redis配置
REDIS_URL=redis://localhost:6379
# JWT密钥
JWT_SECRET=your-secret-key
# 日志级别
RUST_LOG=info
启动服务后访问:http://localhost:8080/swagger-ui/
| 指标 | 数值 |
|---|---|
| 最大车辆接入 | 50,000+ |
| 并发视频流 | 10,000+ |
| 消息吞吐量 | 100,000 msg/s |
| 平均响应时间 | < 50ms |
欢迎提交 Pull Request!
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)本项目基于 Apache License 2.0 开源 - 详见 LICENSE 文件
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
webCodecsPlayer/xiaoyuPlayer 双解码器、webSocketStream 模块化拆分active 通道 + 4h 失活清理 + 终端字段迁移(manufacturer_id / terminal_model)require_auth 准备、密码日志脱敏、Plan B IDR 门限按 SPS 宽度重算CarpTMS - 让运输更智能
Rust
77.7%
Vue
11.9%
TypeScript
7.4%
JavaScript
1.3%
CarpTMS 是一套完全开放的车联网为主的低空经济运营平台。设计目标为支持 5万台 危化与普货车辆监管和调度,预留了 500-1000架无人机 的管理代码。
本项目采用 Apache License 2.0 开源,欢迎大家二次开发并维护好自己的客户,在这个变动的世界里找到一条自己的活路。
| 技术 | 用途 |
|---|---|
| Rust 1.94 | 系统编程语言 |
| Actix-web 4 | Web框架 |
| Tokio | 异步运行时 |
| SQLx | 数据库访问 |
| Redis | 缓存层 |
| PostgreSQL | 主数据库 |
| 技术 | 用途 |
|---|---|
| Vue 3 | 前端框架 |
| TypeScript | 类型安全 |
| Pinia | 状态管理 |
| Element Plus | UI组件库 |
| 技术 | 用途 |
|---|---|
| Docker | 容器化 |
| Kubernetes | 编排 |
| Nginx | 反向代理 |
| Prometheus | 监控 |
| Grafana | 可视化 |
cd My_server
# 安装依赖
cargo build
# 开发模式
cargo run
# 生产模式(CPU AI)
cargo build --release
# GPU加速模式
cargo build --release --features ai-gpu
cd My_client
# 安装依赖
npm install
# 开发模式
npm run dev
# 生产构建
npm run build
# 开发环境(仅核心服务)
podman-compose up -d postgres-primary redis-master carptms-server
# 生产环境(含监控、备份)
podman-compose --profile production --profile monitoring up -d
# 蓝绿部署模式
podman-compose --profile blue-green up -d
# 微服务架构
podman-compose -f podman-compose.microservices.yml up -d
CarpTMS/
├── My_server/ # 后端服务 (Rust)
│ ├── src/
│ │ ├── bin/ # 可执行入口
│ │ ├── video/ # 视频流处理
│ │ ├── domain/ # 领域模型
│ │ ├── bff/ # 前端适配层
│ │ └── ...
│ ├── migrations/ # 数据库迁移
│ └── Cargo.toml
│
├── My_client/ # 前端应用 (Vue)
│ ├── src/
│ │ ├── components/ # Vue组件
│ │ ├── views/ # 页面视图
│ │ └── ...
│ └── package.json
│
├── scripts/ # 部署脚本
├── k8s/ # Kubernetes配置
├── docs/ # 文档
└── LICENSE # Apache 2.0许可证
# 1. 创建数据库
psql -U postgres -c "CREATE DATABASE carptms;"
# 2. 运行迁移
cd My_server
psql -U postgres -d carptms -f migrations/20260101000001_create_vehicles_table.sql
psql -U postgres -d carptms -f migrations/20260101000002_create_orders_tables.sql
# ... 其他迁移文件
# 3. 初始化基础数据
psql -U postgres -d carptms -f ../create_database.sql
database:
host: "localhost"
port: 5432
username: "postgres"
password: "your_password"
name: "carptms"
redis:
host: "localhost"
port: 6379
app:
host: "0.0.0.0"
port: 8080
# 数据库配置
DATABASE_URL=postgres://postgres:password@localhost:5432/carptms
# Redis配置
REDIS_URL=redis://localhost:6379
# JWT密钥
JWT_SECRET=your-secret-key
# 日志级别
RUST_LOG=info
启动服务后访问:http://localhost:8080/swagger-ui/
| 指标 | 数值 |
|---|---|
| 最大车辆接入 | 50,000+ |
| 并发视频流 | 10,000+ |
| 消息吞吐量 | 100,000 msg/s |
| 平均响应时间 | < 50ms |
欢迎提交 Pull Request!
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)本项目基于 Apache License 2.0 开源 - 详见 LICENSE 文件
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
webCodecsPlayer/xiaoyuPlayer 双解码器、webSocketStream 模块化拆分active 通道 + 4h 失活清理 + 终端字段迁移(manufacturer_id / terminal_model)require_auth 准备、密码日志脱敏、Plan B IDR 门限按 SPS 宽度重算CarpTMS - 让运输更智能
Rust
77.7%
Vue
11.9%
TypeScript
7.4%
JavaScript
1.3%