GithubHelp home page GithubHelp logo

buglan / etcd-manage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shiguanghuxian/etcd-manage

0.0 1.0 0.0 39.59 MB

一个现代的etcd v3管理ui

Home Page: http://140.143.234.132:10280/ui/#/key/kv

License: MIT License

Dockerfile 0.11% Makefile 1.01% Go 41.50% JavaScript 5.95% HTML 0.66% Vue 50.65% Shell 0.12%

etcd-manage's Introduction

etcd-manage

本项目受到e3w启发

项目旨在于方便开发者简单明了的查看、添加、修改和删除存储于etcd中的配置。

相比于e3w本程序运行简单,已将ui静态文件打包到了可执行文件中只需在终端运行此程序即可自动打开浏览器访问子集的etcd。

与e3w好的地方

  1. 支持多etcd服务,更适用于开发者日常开发场景,一般都会有开发环境、测试环境和线上环境的不同切换etcd服务端。
  2. 支持Basic Auth用户验证登录,可以通过配置文件添加用户并设置用户角色实现用户可访问etcd server的空。

Demo

demo地址: Demo

用户名:admin

密码:123456

使用

可以直接通过docker-compose将服务运行在docker中,可以参考 https://github.com/shiguanghuxian/docker-compose/tree/master/etcd33直接使用。

配置文件介绍 bin/config/cfg.toml

配置完后就可以直接在终端运行 etcd-manage

备注

如果需要切换用户需要彻底退出浏览器,重新打开管理页面。

编译和运行

由于已经将前端静态文件打包到了tpls/tpls.go,如果不需要自定义ui可以不忽略 前端代码编译 部分

服务端编译:

  1. 编译到当前平台

make build 2. 编译到其它平台

make linux_build 或 make windows_build

  1. 直接运行

make run

  1. 安装

make install

  1. 编译前端代码

make build_web

  1. 编译docker

make docker_build

docker-compose up

前端代码编译:

  1. 安装node

    下载地址 https://nodejs.org/

  2. 安装cnpm加速node依赖安装速度

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

  3. 安装vue-cli3

    cnpm install -g @vue/cli

  4. 安装依赖,编译项目

    cd $GOPATH/github.com/shiguanghuxian/etcd-manage/static

    cnpm install && npm run build

运行效果

首页

列表形式显示

添加

删除

查看&修改

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.