Giter Club home page Giter Club logo

kafkey's Introduction

kafkey

kafka + key : kafka的监控管理工具

程序目录简介

  • requirements.txt 程序依赖包列表
  • manage.py 程序入口
  • tests 测试类目录
  • app 所有非测试程序存放目录

部署

  • 创建虚拟环境

     virtualenv venv 
    
  • 激活虚拟环境

     source ./venv/bin/activate
    
  • 安装虚拟环境依赖包

     pip install -r requirements.txt
     
     # 如果没有requirements.txt, 可以在运行程序的主机上直接运行如下命令生成该文件
     (venv) $ pip freeze >requirements.txt
    
  • 初始化数据库

     python manage.py initdb
    
  • 启动程序

     python manage.py runserver --host 0.0.0.0
     
     # 查看帮助
     python manage.py runserver --help 
    
  • 关于migrate操作(此处暂时忽略)

    • 创建数据迁移仓库

       python manage.py db init
      
    • 创建自动迁移脚本

       python manage.py db migrate -m "initial migration"
      
    • 应用迁移脚本到数据库中

       python manage.py db upgrade
      

kafkey's People

Contributors

panda7240 avatar

Watchers

James Cloos avatar 杨林强 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.