Skip to content

Commit

Permalink
Merge pull request #54 from DeepInsight-AI/new_pre
Browse files Browse the repository at this point in the history
New pre to main
  • Loading branch information
LiChengxin007 authored Jan 7, 2024
2 parents 0b74066 + 314a3ab commit 59b505c
Show file tree
Hide file tree
Showing 250 changed files with 6,440 additions and 1,326 deletions.
9 changes: 0 additions & 9 deletions .coveragerc

This file was deleted.

1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

63 changes: 0 additions & 63 deletions .restyled.yaml

This file was deleted.

12 changes: 6 additions & 6 deletions Docker_install.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ sudo ln -s /usr/bin/docker-compose /usr/local/bin/docker-compose
- Start the docker command ```sudo service docker start```
- Check the docker running status command``` service docker status``` It should be "active (running)"
- Install network management commands```sudo apt install net-tools```
- Download the DeepBi code by the command :
- Download the DeepBI code by the command :
```
git clone https://github.com/DeepInsight-AI/DeepBI.git
```
Expand All @@ -58,17 +58,17 @@ If the download fails to replace the protocol, run the following code
git clone http://github.com/DeepInsight-AI/DeepBI.git
```
- During the installation process, you will be prompted to choose an IP address. Select an internal IP starting with 172.x.x.x
- Run the command ```cd DeepBi``` to the corresponding folder and run install file ```sudo ./install.sh```
- Run the command ```cd DeepBI``` to the corresponding folder and run install file ```sudo ./install.sh```
- Run the command:```sudo ./Install_cn.sh ``` to start the installation.
- After the installation is complete, there will be a URL prompt. Open it directly in your browser.
(Note: *Closing the command prompt window will result in no access to the DeepBi URL.
To use DeepBi again, open "Command Prompt" window "Run as Administrator"
(Note: *Closing the command prompt window will result in no access to the DeepBI URL.
To use DeepBI again, open "Command Prompt" window "Run as Administrator"
```
1.Run command "wsl"
2.Run command“cd DeepBi
2.Run command“cd DeepBI
3.Run command“sudo docker-compose start”
```
You can then open your DeepBi URL in the browser [URLs are in the format http://‘local machine's internal IP address’:8338]
You can then open your DeepBI URL in the browser [URLs are in the format http://‘local machine's internal IP address’:8338]


- If you need to obtain the WSL internal IP address again: ``` ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -vE '^inet 127(\.[0-9]{1,3}){3}' ```
Expand Down
51 changes: 25 additions & 26 deletions Docker_install_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

- [PDF 中文Docker安装下载](./user_manual/中文docker安装说明.pdf)


# Windows
- windows 11 可以直接安装
- 注意 Windows 10 需要更新到 22H2版本及以上命令行运行<br>
Expand Down Expand Up @@ -34,9 +33,11 @@
运行: wsl --list --online 查看可以安装的版本
然后运行: wsl --install -d Ubuntu-20.04 # 这里的Ubuntu-20.04 就是版本号
```
3. 打开管理员命令行,登录 WSL
4. 运行命令```wsl```或者 ```wsl -u [username]``` username 是你之前安装的用户名
5. 登录后,我们开始安装 docker(每行为一个命令依次运行,下同)

4. 打开管理员命令行,登录 WSL
5. 运行命令```wsl```或者 ```wsl -u [username]``` username 是你之前安装的用户名
6. 登录后,我们开始安装 docker(每行为一个命令依次运行,下同)

```
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
Expand Down Expand Up @@ -67,16 +68,16 @@ sudo ln -s /usr/bin/docker-compose /usr/local/bin/docker-compose
12. 上面安装完毕docker ,以后就不用再次安装


## 配置DeepBi
## 配置DeepBI

14. 运行命令 ```service docker status``` 确认docker是在运行 "active (running)"
15. 然后,安装DeepBi有两种方式,任选其一 如下
15. 然后,安装DeepBI有两种方式,任选其一 如下
- (1)直接下载压缩包 (推荐)
- 在WSL命令行中运行命令 : ```pwd``` 你会看到你目前的文件夹地址 比如 ```/mnt/c/Windows/system32```
- 点击”<a href="https://github.com/DeepInsight-AI/DeepBi" target='_blank'>链接</a>“通过网页下载我们的代码 如下图
- 点击”<a href="https://github.com/DeepInsight-AI/DeepBI" target='_blank'>链接</a>“通过网页下载我们的代码 如下图
- ![download.png](user_manual/cn/img/download.png)
- 解压后的文件夹 "DeepBi" 移动到 C:/Windows/system32 (也就是上面看到的文件夹地址,c表示C盘)
- 回到WSL命令行,运行命令```cd DeepBi ```进入项目文件夹
- 解压后的文件夹 "DeepBI" 移动到 C:/Windows/system32 (也就是上面看到的文件夹地址,c表示C盘)
- 回到WSL命令行,运行命令```cd DeepBI ```进入项目文件夹
- 修改权限 ```sudo chmod +x ./Install.sh```
- 运行命令```sudo ./Install_cn.sh ``` 开始安装,安装结束后会有一个网址提示,直接浏览器访问即可

Expand All @@ -91,19 +92,19 @@ git clone http://github.com/DeepInsight-AI/DeepBI.git
```
- 出现 ```Are you sure you want to continue connecting (yes/no/[fingerprint])? ```
- 输入 ```yes``` 回车
- 进入项目文件夹 ```cd DeepBi ```
- 进入项目文件夹 ```cd DeepBI ```
- 修改权限 ```sudo chmod +x ./Install.sh```
- 下面按安装过程会有 选择IP 的,选择内网开头的 172.x.x.x
- 运行命令```sudo ./Install_cn.sh ``` 开始安装
16. 安装结束后会有一个网址提示,直接浏览器访问即可<br>
(注意*关闭命令符窗口将无法访问属于DeepBi网址
再次使用DeepBi,打开“命令提示符”窗口“以管理员身份运行”
(注意*关闭命令符窗口将无法访问属于DeepBI网址
再次使用DeepBI,打开“命令提示符”窗口“以管理员身份运行”
```
1.运行“wsl”命令
2.运行“cd DeepBi”命令
2.运行“cd DeepBI”命令
3.运行“sudo docker-compose start”命令
```
就可以去浏览器中打开自己DeepBi网址了【网址都是http://‘本机内网IP地址’:8338】
就可以去浏览器中打开自己DeepBI网址了【网址都是http://‘本机内网IP地址’:8338】
启动后关闭所有代理软件

17. 如果再次向获取wsl内网ip地址 ``` ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -vE '^inet 127(\.[0-9]{1,3}){3}' ```
Expand All @@ -114,14 +115,14 @@ git clone http://github.com/DeepInsight-AI/DeepBI.git
19. 如果重新安装 一定先要关闭并卸载之前的容器 ```sudo docker-compose down```

## 注意事项
- 注意*关闭命令符窗口将无法访问属于DeepBi网址
- 再次使用DeepBi,打开“命令提示符”窗口“以管理员身份运行”
- 注意*关闭命令符窗口将无法访问属于DeepBI网址
- 再次使用DeepBI,打开“命令提示符”窗口“以管理员身份运行”
```
1.运行“wsl”命令
2.运行“cd DeepBi”命令
2.运行“cd DeepBI”命令
3.运行“sudo docker-compose start”命令
```
- 就可以去浏览器中打开自己DeepBi网址了【网址都是http://‘本机
- 就可以去浏览器中打开自己DeepBI网址了【网址都是http://‘本机


# Ubuntu
Expand Down Expand Up @@ -149,7 +150,7 @@ systemctl start docker
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
sudo systemctl enable docker
```
## 配置DeepBi
## 配置DeepBI
3. 开始下载我们的代码文件
```
git clone https://github.com/DeepInsight-AI/DeepBI.git
Expand All @@ -158,9 +159,9 @@ git clone https://github.com/DeepInsight-AI/DeepBI.git
```
git clone http://github.com/DeepInsight-AI/DeepBI.git
```
4. 解压后重命名为 "DeepBi" 然后进入目录
4. 解压后重命名为 "DeepBI" 然后进入目录
```
cd DeepBi && sudo chmod +x ./Install_CN.sh
cd DeepBI && sudo chmod +x ./Install_CN.sh
. Install_CN.sh
```
5. 注意上面运行的是 . Install_cn.sh
Expand Down Expand Up @@ -197,9 +198,9 @@ git clone http://github.com/DeepInsight-AI/DeepBI.git
- 运行命令:```brew services start docker```
- 检查命令:```brew services list |grep docker```

## 配置DeepBi
- 下载代码```git clone [email protected]:DeepInsight-AI/DeepBi.git```
- 运行命令到对应文件夹 ```cd DeepBi ```
## 配置DeepBI
- 下载代码```git clone [email protected]:DeepInsight-AI/DeepBI.git```
- 运行命令到对应文件夹 ```cd DeepBI ```
- 修改权限 ```sudo chmod+x ./Install.sh```
- 运行命令```sudo ./Install_cn.sh ``` 开始安装,安装结束后会有一个网址提示,直接浏览器访问即可
- 从版本1.1 如果更新代码,直接拉取 新的代码```git pull```,然后重启docker即可 <br>
Expand All @@ -208,8 +209,6 @@ git clone http://github.com/DeepInsight-AI/DeepBI.git
老版本 docker 容器则需要重新安装
- 如果重新安装 一定先要关闭并卸载之前的容器 ```sudo docker-compose down```



# 联系我们

<a><img src="https://github.com/DeepInsight-AI/DeepBI/assets/151519374/b0ba1fc3-8c71-4bf7-bd53-ecf17050581a" width="40%"/></a>
Expand Down
52 changes: 29 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div align="center">

DeepBi is an AI-native data analysis platform. DeepBi leverages the power of large language models to explore, query, visualize, and share data from any data source. Users can use DeepBi to gain data insight and make data-driven decisions.
DeepBI is an AI-native data analysis platform. DeepBI leverages the power of large language models to explore, query, visualize, and share data from any data source. Users can use DeepBI to gain data insight and make data-driven decisions.


</div>
Expand All @@ -14,7 +14,7 @@ Developer:[email protected] Business:[email protected]

<div style="display: flex; align-items: center;">

If you think DeepBi is helpful to you, please help by clicking <a style="display: flex; align-items: center;margin:0px 6px" target="_blank" href='https://github.com/DeepInsight-AI/DeepBi'>here</a> on the ⭐ Star and Fork in the upper right corner. Your support is the greatest driving force for DeepBi to become better.
If you think DeepBI is helpful to you, please help by clicking <a style="display: flex; align-items: center;margin:0px 6px" target="_blank" href='https://github.com/DeepInsight-AI/DeepBI'>here</a> on the ⭐ Star and Fork in the upper right corner. Your support is the greatest driving force for DeepBI to become better.


</div>
Expand All @@ -24,11 +24,11 @@ If you think DeepBi is helpful to you, please help by clicking <a style="display

## Video example

https://github.com/DeepInsight-AI/DeepBi/assets/151519374/d1effbe1-5c11-4c77-86ef-e01b1ea7f2f6
https://github.com/DeepInsight-AI/DeepBI/assets/151519374/d1effbe1-5c11-4c77-86ef-e01b1ea7f2f6


## user manual
[DeepBi user manual](client/app/assets/images/en/user_manual_en.md)
[DeepBI user manual](client/app/assets/images/en/user_manual_en.md)


## ✨ Features
Expand All @@ -44,24 +44,42 @@ https://github.com/DeepInsight-AI/DeepBi/assets/151519374/d1effbe1-5c11-4c77-86e

## 🚀 Supported Databases

The database connections supported by DeepBi are:
The database connections supported by DeepBI are:
- MySQL
- PostgreSQL
- csv/Excel Import


## 📦 Windows exe installation
- Download ```window_install_exe_EN.zip``` from the <a href="https://github.com/DeepInsight-AI/DeepBI/releases">tag list</a>.The current test supports Win10 and Win11
- Unzip the zip package and double-click the.exe file to run DeepBI
- Local installation instructions [Installl exe](README_window_en.md)

## 📦 Docker build

- The local environment needs to have docker and docker-compose. <br>
- [Installl docker](Docker_install.md)
- Download project files by git:``` git clone https://github.com/DeepInsight-AI/DeepBi.git ``` <br>
- Download project files by git:``` git clone https://github.com/DeepInsight-AI/DeepBI.git ``` <br>
or drirect download zip file, unzip it. <br>
![download.png](user_manual/cn/img/download.png)

- Enter the project directory:``` cd DeepBi ```
- Enter the project directory:``` cd DeepBI ```
- Just run``` ./Install.sh ```directly
- Default port: 8338 8339
- Web access: http://ip:8338

#### DeepBI docker command
- Enter project DeepBI dir:
```
docker-compose start # start DeepBI servie
docker-compose stop # stop DeepBI servie
docker-compose ps # see DeepBI servie states
```
- If it appears... PermissionError ... ' or ' Permission denied', please add 'sudo' before executing the command
```
sudo docker-compose start # start DeepBI servie
sudo docker-compose stop # stop DeepBI servie
sudo docker-compose ps # see DeepBI servie states
```

## Ubuntu build
Install directly on the ubuntu system, you need to install redis, postgresql python3.8.17 environment.
Expand All @@ -70,7 +88,7 @@ Install directly on the ubuntu system, you need to install redis, postgresql pyt
- Require python version 3.8+
- Recommend using virtual environments such as pyenv coda
- postgresql needs to install postgresql-16 version
- Download the DeepBi code by the command :
- Download the DeepBI code by the command :
```
git clone https://github.com/DeepInsight-AI/DeepBI.git
```
Expand All @@ -83,19 +101,7 @@ git clone http://github.com/DeepInsight-AI/DeepBI.git
- Web access: http://ip:8338


## DeepBI command
- Enter project DeepBi dir:
```
docker-compose start # start DeepBi servie
docker-compose stop # stop DeepBi servie
docker-compose ps # see DeepBi servie states
```
- If it appears... PermissionError ... ' or ' Permission denied', please add 'sudo' before executing the command
```
sudo docker-compose start # start DeepBi servie
sudo docker-compose stop # stop DeepBi servie
sudo docker-compose ps # see DeepBi servie states
```


## Contact Us
<a><img src="https://github.com/DeepInsight-AI/DeepBI/assets/151519374/b0ba1fc3-8c71-4bf7-bd53-ecf17050581a" width="40%"/></a>
Expand All @@ -106,5 +112,5 @@ git clone http://github.com/DeepInsight-AI/DeepBI.git
- We have tested on Mac OS 12.7/13.X /14.1.1, Ubuntu 20.04/22.04, and Windows11 WSL 22.04.
- Windows 10 requires version 22H2 or higher to install WSL
- If you have any question, please contact us at [email protected]
- <a href="https://github.com/DeepInsight-AI/DeepBi/issues">Issue</a>
- <a href="https://github.com/DeepInsight-AI/DeepBI/issues">Issue</a>

Loading

0 comments on commit 59b505c

Please sign in to comment.