Coder Social home page Coder Social logo

chenguangruoyu / itflow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hyahm/itflow

0.0 1.0 0.0 7.44 MB

一个简单直观的bug管理系统,go+vue

License: BSD 3-Clause "New" or "Revised" License

Go 24.66% JavaScript 15.10% HTML 0.06% Vue 56.96% CSS 0.09% Dockerfile 0.47% Shell 0.17% Handlebars 0.09% SCSS 2.39%

itflow's Introduction

简介

一个开源的bug管理系统,IT人员开发全过程,(文件存储,接口文档, 单接口测试功能 , 已经被删除)
bug管理功能基本能满足90%以上的需求, 其他需求可以自己开发,也可以提交issues

功能

  • 增加bug,改变bug状态,转交bug
  • 部门管理
  • 显示bug列表,搜索、分页
  • 用户创建及其操作
  • 上传个人头像
  • 增加邮件通知功能
  • 可以修改邮箱
  • 增加admin用户的信息重置接口
    admin用户有且只有一个,注册admin账户建议直接操作数据库,然后修改密码即可 如果忘记admin的密码,可以执行下面命令重置密码,如下所示,只能在go服务器那台机器上执行
   curl http://127.0.0.1:10001/admin/reset?password=123
  • 增加修改邮箱,昵称,姓名页面
  • bug可以指定多人,自己的bug才可以转交,删除bug内部转交功能,增加缓存,增加查看所有bug的权限
  • 增加用户禁用功能,当此用户存在bug时,无法被删除
  • 禁用用户,此用户的所有发布的bug都将移动至垃圾箱,垃圾箱里面的bug只有管理员才能查看,启用用户会将此用户的bug改为非垃圾箱
  • 增加操作日志,只有管理员才能查看
  • 状态实时保存
  • 项目管理增加用户权限
  • 为了更好的使用,增加消息提示
  • 管理层可以对下级表用户表管理

展示页面:

展示页面会更新为最新可使用的代码
ITflow

部署

需要 mysql >= 5.7 node 和go 最近即可, 然后还需要nginx 代理前端代码

git clone https://github.com/hyahm/ITflow.git
cd ITflow
后端(安装最新版的go, 并将其目录下的bin目录添加进环境变量, 保证有go命令), 有安装好mysql数据库
cd go

创建一个库

mysql> create database bug;

导入表

mysql bug < bug.sql

设置代理

export GOPROXY=https://goproxy.cn   // 国内的机器需要执行代理, 国外的机器不需要

修改配置文件

go run cmd/makeconfig/config.go   # 自动生成默认配置文件到本目录   bug.ini
showbaseurl = http://127.0.0.1:10001/showimg/    #  127.0.0.1 换成外网的IP地址
salt = hjkkakoweqzmbvc   # 修改salt值后   服务启动后用 curl http://127.0.0.1:10001/admin/reset?password=123 修改admin 密码
cross=*   # 设置跨域的域名   eg:  http://127.0.0.1

启动后端服务

go build main.go
./main
前端(最新版node, 保证有npm命令)
cd vue

优先使用cnpm 安装 
npm install  --registry=https://registry.npm.taobao.org  cnpm -g
cnpm install
或 npm 安装
npm install  --registry=https://registry.npm.taobao.org  # 安装依赖

或 yarm 安装
npm install  --registry=https://registry.npm.taobao.org  yarm -g
yarm install

修改配置文件 .env.production

VUE_APP_BASE_API = 'http://120.26.164.125:10001'  # 改为后端服务器外网地址
VUE_APP_USERNAME = ''  # 设置为空
VUE_APP_PASSWORD = ''   # 设置为空

打包

npm run build:prod

使用nginx 部署

server {
        listen 80;
        server_name 127.0.0.1;
        root <ITflow_dir>/vue/dist;
        index index.html;


        location / {
                try_files $uri $uri/ @router;
                index index.html;
        }


        location @router {
                rewrite ^.*$ /index.html last;
        }
}

然后通过 http://<server_name>:port 访问

项目优势

部署简单, 使用简单, 高定制, 永久开源 可以自己二次开发

QQ群

928790087

itflow's People

Contributors

hyahm avatar htdcander avatar dependabot[bot] avatar

Watchers

James Cloos avatar

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.