Giter VIP home page Giter VIP logo

approval-system's Introduction

项目审批系统

相关截图(文末还有)

all_apply

my_apply_id

安装相关库

$ git clone https://github.com/rmboot/approvalsystem
$ cd approvalsystem
$ pipenv install
$ pipenv shell

初始化数据库

Mysql创建新用户并授权数据库权限

模型映射到数据库

$ python manage.py db init
$ python manage.py db migrate
$ python manage.py db upgrade

初始化role,status,dept表

在数据库控制台执行init.sql的SQL语句

初始化user表

1.取消user.py文件视图函数index的注释,执行
$ flask run
* Running on http://127.0.0.1:5000/
2.访问 http://127.0.0.1:5000/ 会生成相应用户,并打印提示信息
3.Press CTRL+C 关闭Flask,将取消的注释再次注释

所有配置完成,再次执行,然后去登录吧

$ flask run
* Running on http://127.0.0.1:5000/

Pipenv 下载速度太慢可以选择指定源

$ pipenv install --pypi-mirror https://pypi.tuna.tsinghua.edu.cn/simple

或者去看一下Pipenv借助系统环境变量设置国内源

pending_approval

apply

pending_approval_id

License

This project is licensed under the MIT License (see theLICENSE file for details).

approval-system's People

Contributors

dependabot[bot] avatar rmboot avatar

Watchers

 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.