Giter Site home page Giter Site logo

docsharing's Introduction

文档分享

项目介绍

快速开始

  • 下载
git clone https://github.com/pangxiaobin/DocSharing.git 
cd DocSharing
  • 安装依赖
# 创建虚拟环境  需要安装virtualenv 和virtualenvwrapper
mkvirtualenv doc
pip install -r requments.txt
# 注释 windows pip install uwsgi 会报错 windows下演示可先在requments.txt 注释掉uwsgi
  • 本地测试
    • 配置数据库
    # 连接数据库
     mysql -uroot -p
    # 创建数据库
     create database docsharing charset=utf8;
    • 修改配置文件
      # DocSharing/App/setting.py
      # 修改PASSWORD
      DATABASE = {
        'ENGINE': 'mysql',
        'DRIVER': 'pymysql',
        'USER': 'root',
        'PASSWORD': 'root',
        'HOST': 'localhost',
        'PORT': '3306',
        'NAME': 'docsharing'
    }
    
    • 进行数据表映射
    # 初始化
    python manage.py db init
    # 生成迁移文件
    python manage.py db migrate 
    # 执行迁移
    python manage.py db upgrade
    • 运行项目
    python manage.py runserver
  • 项目服务器部署

效果图

首页 项目列表页 项目编辑页 项目详情展示页

docsharing's People

Contributors

dependabot[bot] avatar pangxiaobin avatar

Stargazers

 avatar  avatar

Watchers

 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.