一、简介
Franchise是使用nodejs实现,类似于phpMyAdmin的图形化MySQL工具,目前支持SQLite PostgreSQL MySQL BigQuery, 将来会支持MongoDB Oracle DB2。
官网:https://franchise.cloud/
github:https://github.com/HVF/franchise
二、安装
0.If you don't have npm or yarn, install yarn.
1.Open up a terminal and run
git clone --depth 1 https://github.com/HVF/franchise.git
2.cd into the project directory
cd franchise
3.Install the project dependencies
yarn install (npm install)
4.Start the dev server
yarn start (npm start)
5.Open up a browser and go to http://localhost:3000
二、使用
1.在命令行中运行npx franchise-client@0.2.2,如果没有npx,去此地址下载安装(https://nodejs.org/en/download/)

2.选择数据库类型(MYSQL),输入域名 端口号 账号 密码 数据库名称,如图

4.点击Connect连接
Settings:可以查看连接属性(可以断开连接)
MySQL Help:一些关于SQL帮助文档
其他的按钮可以点点看,有tip
...
5.查询事例如下

右下方菜单栏功能如下(也就是数据展示方式)
Table View
Card View
Line Chart
Bar Chart
Scatter Plot
Export Results (格式有 CSV TSV XLSX HTML JSON)
Full Screen
三、部署
1.yarn build
2.此目录franchise/bundle当成静态网页部署
网友评论