Go to file
medcl ca54101cb8 add license and notice to build files 2022-06-01 18:10:07 +08:00
config test: (rbac) validate index and cluster unit test 2022-04-27 14:22:12 +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 copy channel name and type to execution result 2022-05-13 16:03:59 +08:00
plugin/api clear auth api 2022-05-17 17:36:09 +08:00
service/alerting add to_lower to_upper func 2022-05-13 18:45:10 +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 add license and notice to build files 2022-06-01 18:10:07 +08:00
Jenkinsfile-docker update jenkins file 2022-03-30 12:15:22 +08:00
Makefile update makefile 2022-03-22 16:13:09 +08:00
NOTICE add license and notice to build files 2022-06-01 18:10:07 +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 config 2022-05-17 19:34:10 +08:00
env_check.go elasticsearch of data store support v8.0+ 2022-04-28 15:09:06 +08:00
main.go refactoring security 2022-05-11 16:10:15 +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

前端开发常用链接