# ChatBK **Repository Path**: hideonrose/chat-bk ## Basic Information - **Project Name**: ChatBK - **Description**: 新冠肺炎聊天机器人后端django代码 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-01-18 - **Last Updated**: 2021-01-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ChatBK #### 介绍 新冠肺炎聊天机器人后端django代码 #### 安装教程 1. 根据requirements.txt安装依赖 ``` pip install -r requirements.txt ``` 2. 安装elasticsearch和kibana并启动 在启动的kibana中的dev tools,输入命令 ``` - PUT /demo - curl -XPUT "localhost:9200/demo?pretty" -H "Content-Type: application/json" -d"{"""mappings""":{"""properties""": {"""subj""": {"""type""": """keyword"""}, """po""":{ """type""": """nested""","""properties""":{"""pred""":{"""type""":"""keyword"""}, """obj""":{"""type""":"""keyword"""}}}}}}" - POST demo/ + json.txt文件中的全部内容 ``` 3. 启动django ``` python manage.py runserver 127.0.0.1:8001 ```