Go to file
medcl c9c9d9ca9e add tips for easy_json 2022-02-05 22:37:02 +08:00
config console and cors 2021-11-02 16:22:42 +08:00
db add db script folder 2020-03-27 23:16:15 +08:00
docker update docker build jobs 2022-01-25 21:17:38 +08:00
model add aterting overview and sync cluster id 2021-09-28 09:40:29 +08:00
plugin/api update id to string 2022-01-27 17:43:38 +08:00
service/alerting update id to string 2022-01-27 17:43:38 +08:00
.dockerignore update web docker config 2020-04-20 12:24:37 +08:00
.gitignore ignore generated go files 2022-01-25 12:40:44 +08:00
Jenkinsfile update docker build jobs 2022-01-25 21:17:38 +08:00
Jenkinsfile-docker fix docker build file 2022-01-26 09:23:19 +08:00
LICENSE update license and jenkinsfile 2022-01-16 14:59:11 +08:00
Makefile add tips for easy_json 2022-02-05 22:37:02 +08:00
README.md update footprint 2022-01-25 15:45:03 +08:00
build.bat fix package and build 2020-11-08 11:04:41 +08:00
console.yml update comments in yml 2022-01-27 18:45:15 +08:00
main.go remove infini from terminal header 2022-02-05 22:02:58 +08:00
ui.go rename search-center to console 2022-01-25 15:34:58 +08:00

README.md

#INFINI Cloud

INFINI Cloud for Elasticsearch

前端开发说明

前端采用 React 开发,最终输出为 .public 目录的纯静态资源,可以独立部署无需依赖 Node 环境。

Docker 开发环境准备

安装 Docker

设置 Docker 国内镜像

修改 Docker engine 的设置Windows 在 Docker Desktop 的 setting 里面Linux 在 /etc/docker/daemon.json

{
  "registry-mirrors": [
    "https://registry.docker-cn.com",
    "https://docker.mirrors.ustc.edu.cn/"
  ],
  "insecure-registries": [],
  "debug": true,
  "experimental": false
}

启动开发环境

cnpm run docker:dev

启动完成,稍等片刻,打开 http://localhost:8000/,手动刷新即可看到最新的更改

手动更新开发镜像

docker login -u infini -p ltd docker.infini.ltd:64443
docker pull docker.infini.ltd:64443/nodejs-dev:latest

本地开发环境准备

确保已经安装好nodejs(版本大于等于 8.5.0)环境:

node -v
npm -v

在国内,你可以安装 cnpm 获得更快速、更安全的包管理体验。使用如下命令安装:

npm install -g cnpm --registry=https://registry.npm.taobao.org

下载项目依赖包

cnpm install
cnpm install -g  cross-env

启动开发模式

cnpm run dev

编译静态资源

cnpm run build

执行该命令后会生成最终的 HTML、CSS 和 JS 到 /.public 目录下。它们是浏览器可以直接识别并运行的代码,这样你就可以将它们部署到你想要的服务器上了。

或者使用 Docker 来打包生成。

cnpm run docker:build

新增项目依赖包

cnpm install --save md5

前端开发常用链接