# Baina IOT Integrated Platform **Repository Path**: zhangpengju/baina-iot-integrated-platform ## Basic Information - **Project Name**: Baina IOT Integrated Platform - **Description**: 百纳 IOT综合平台 - **Primary Language**: Python - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-08 - **Last Updated**: 2025-07-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 环境准备 > **系统版本** ```shell (venv) root@iZbp12m3h4o5g4uoyynk1tZ:/opt# cat /etc/os-release PRETTY_NAME="Ubuntu 22.04.5 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.5 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy ``` > **项目原代码拉取** ``` git clone https://gitee.com/zhangpengju/baina-iot-integrated-platform /usr/local/src/baina-iot-integrated-platform ``` ## 1. 安装`redis` ``` sudo apt-get install redis-server ``` ## 2. 安装`PostgreSQL` ``` 移步官方文档:https://www.postgresql.org/ # TODO ``` ## 3. 安装`python3.6`及以上的虚拟环境 ``` # 安装python3的虚拟环境库 sudo apt install python3-venv -y # 创建虚拟环境 mkdir /root/python3env python3 -m venv /root/python3env/venv # 激活虚拟环境 source /root/python3env/venv/bin/activate # 安装所需的库 pip install --upgrade pip pip install -r requirements.txt ``` 注:退出虚拟环境命令:`deactivate ` ## 4. 服务启动 将services文件夹中的服务文件启动依次启动 执行`python run_tests.py`自动化测试,测试通过后部署成功