/zeus-workflow

Flexible work order system: The front end of the work order project is flexibly configured according to the needs, and the approval process is dynamically configured. 灵活工单系统,工单项能够根据需求灵活调整,审批流也能动态调整,工单有人工执行也可以自动化执行。运维开发系统一个重要组成部分。

Primary LanguageJavaScript


分析架构

该系统只是众多运维自动化系统中的一个,还有很多系统(CICD,CMDB,服务树,多云管理,K8S管理,成本中心,监控中心等等)

https://note.youdao.com/ynoteshare/index.html?id=189426b4aa392176cfe56e839160824e&type=note&_time=1668498223015

Description

Flexible work order system: The front end of the work order project is flexibly configured according to the needs, and the approval process is dynamically configured. #Jacksun qq:774428957 #email:105163356@qq.com #wechat:taiji158

Environment

Centos 6/7
Python 3.6.1-6
mysql-server 5.6.21
node 9.4.0
Django==2.1.4
djangorestframework==3.9.0

How to run

Clone the repository:

➜ git clone git@gitlab.zeus.com:aiops/django-vue-demo.git

Create and activate virtualenv:

➜  virtualenv -p python3 env
➜  source env/bin/activate

Run scripts from Makefile that install all dependencies, run migrations and start dev server.

(env) ➜  mysql -uroot -p -e "create database demo default charset utf8;"
(env) ➜  cp backend/config.example.ini backend/config.ini #修改后端配置
(env) ➜  修改 backend/uwsgi.ini 配置中项目路径和服务端口
(env) ➜  修改frontend/config/dev.env.js、test.env.js和prod.env.js中后端接口地址
(env) ➜  make init
(env) ➜  make dev
(env) ➜  make build-prod
(env) ➜  make start

Nginx config

[root@app1 vhosts]# vim www.zeus.com.conf
upstream demo{
    server 127.0.0.1:8002;
}
server {
        listen 80;
        server_name www.zeus.com;

        location / {
            include uwsgi_params;
            uwsgi_connect_timeout 30;
            uwsgi_pass  demo;
        }

    access_log  /opt/logs/www.zeus.com.log;
}

We are done.

dev

prod

默认管理员账号:admin 密码:abcccc