GithubHelp home page GithubHelp logo

bellmit / flyfish Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloudwise-opensource/flyfish

0.0 0.0 1.0 183.37 MB

飞鱼(FlyFish)是一个数据可视化编码平台。通过简易的方式快速创建数据模型,通过拖拉拽的形式,快速生成一套数据可视化解决方案。

Home Page: https://cloudwise.ai/flyFish.html

License: GNU General Public License v3.0

Dockerfile 0.01% Shell 0.16% JavaScript 86.72% CSS 7.94% TypeScript 0.42% HTML 0.02% C++ 0.81% C 3.67% Python 0.08% Makefile 0.10% CoffeeScript 0.01% PowerShell 0.01% Batchfile 0.01% CMake 0.01% C# 0.01% M4 0.06% Roff 0.01% SCSS 0.01% Less 0.01% Tcl 0.01%

flyfish's Introduction

flyfish

飞鱼(FlyFish)

见码如面

飞鱼(FlyFish)是一个数据可视化编码平台。通过简易的方式快速创建数据模型,通过拖拉拽的形式,快速生成一套数据可视化解决方案。

在线地址

国内镜像

背景知识

历史培训

相关培训

安装说明

分支说明

分支 说明
master 主分支
dev 测试分支

环境依赖

环境 说明
node >= 8.9.3
redis >= 4.0.8
mysql >= 5.6.38

部署流程

# 1、进入项目目录
$ cd flyfish

# 2、修改mysql、redis配置文件ip
# #修改 127.0.0.1 为服务器对应ip【本地部署无需修改】
$ vim src/common/config/adapter.js

# 3、修改code-server配置文件ip
# #用于部署vscode编辑器开发组件
# #查找127.0.0.1 替换127.0.0.1为服务器对应ip【本地部署无需修改】
$ vim code-server/linux/out/browser/pages/vscode.browserified.js

# 4、修改后端服务接口ip
# #修改 apiDomain  与 coderDomain 为服务器对应ip【本地部署无需修改】
$ vim www/static/solution_platform_web/config/ENV.production.js

模式一:Docker 中运行所有服务

  • 优势:操作便捷,只依赖 Docker 服务
  • 缺点:运行速度慢(包含源码拷贝、软件包安装时间),不方便调试
# 5、编译并启动 docker
$ docker build --tag flyfish --file Dockerfile .
$ docker run -itd --name flyfish -p 8364:8364 -p 3306:3306 -p 6379:6379 -p 8081:8081 flyfish

# 6、浏览器访问
# #http://127.0.0.1:8364

# 7、进入docker操作
# #根据开发需要【非必操作项】
$ docker exec -it flyfish /bin/bash

模式二:Docker 中运行仅数据库服务,代码在本机运行

  • 优势:运行速度较快(只有软件包安装时间),方便本地调试
  • 缺点:本地需要安装、配置 NodeJS 环境
# 5、编译并启动 docker
$ docker build --tag flyfish_database --file scripts/macos/Database-Dockerfile .
$ docker run -itd --name flyfish_database -p 3306:3306 -p 6379:6379 flyfish_database

# 6、编译代码
$ bash scripts/flyfish-startup.sh

# 7、浏览器访问
# #http://127.0.0.1:8364

# 8、进入docker操作
# #根据开发需要【非必操作项】
$ docker exec -it flyfish_database /bin/bash

模式三:所有服务都在本地运行

  • 优势:浸入式参与全程编译、运行
  • 缺点:安装软件及配置项啰嗦
# 0、系统版本
$ sw_vers
ProductName:    macOS
ProductVersion: 12.0.1
BuildVersion:   21A559

# 1、启动 MySQL 服务
$ mysql.server start
$ mysql --version 
mysql  Ver 14.14 Distrib 5.7.34, for osx10.16 (x86_64) using  EditLine wrapper

# 2、创建数据库 flyfish
$ mysql -h127.0.0.1 -uroot -p<root密码> -e "create database IF NOT EXISTS flyfish;"

# 3、创建用户 Rootmaster
$ mysql -h127.0.0.1 -uroot -p<root密码> -e "create user Rootmaster@% identified by '<见配置档>';"
$ mysql -h127.0.0.1 -uroot -p<root密码> -e "grant all privileges on *.* to 'Rootmaster'@'%' identified by '<见配置档>';"
$ mysql -h127.0.0.1 -uroot -p<root密码> -e "flush privileges;"

# 4、初始化数据
$ npm run init_database_dev

# 5、启动 Redis 服务
$ brew services start redis

# 6、确认服务运行状态(端口)
$ lsof -i:3306,6379
COMMAND     PID     USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
mysqld     5768 jaden.li   27u  IPv4 0x2b28571b878724bf      0t0  TCP localhost:mysql (LISTEN)
redis-ser 12319 jaden.li    6u  IPv4 0x2b28571b87871a0f      0t0  TCP localhost:6379 (LISTEN)
redis-ser 12319 jaden.li    7u  IPv6 0x2b28571b77d81b87      0t0  TCP localhost:6379 (LISTEN)

# 7、启动本地前后端服务
$ bash scripts/flyfish-startup.sh

# 8、浏览器访问
# #http://127.0.0.1:8364

升级流程

# 1、更新代码
$ git checkout master
$ git pull

# 2、停止并删除容器
$ docker container stop flyfish
$ docker container rm flyfish

# 3、更新并启动容器
# #重复【部署流程】步骤

欢迎加入

获取更多关于FlyFish的技术资料,或加入FlyFish开发者交流群,可扫描下方二维码咨询。

flyfish's People

Contributors

imjaden avatar xiaohu12685 avatar maxdwq avatar osramywj avatar sssssssugar avatar youye avatar neeke avatar aiwhj avatar

Forkers

shidalin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.