Giter VIP home page Giter VIP logo

xiaoshuo's Introduction

项目目录结构

|--yule (开发目录)

|  |-------app
|  |-------|  |-------handler (control)
|  |-------|  |-------|  |-------website (网页端control)
|  |-------|  |-------route (路由)
|  |-------conf (配置文件)
|  |-------|  |-------|-website.conf (项目配置)
|  |-------|  |-------|-redis.conf (redis配置)
|  |-------|  |-------|-mysql.conf (mysql配置)
|  |-------crawler (爬虫)
|  |-------database (数据层)
|  |-------|  |-------data_factory (数据交互层)
|  |-------|  |-------model (数据表映射)
|  |-------|  |-------redis_key (redis key )
|  |-------jobs (服务端运行脚本)
|  |-------lib (基础类库文件)
|  |-------service (业务层)
|  |-------static (静态资源)
|  |-------templates (模板html)
|-------|-job.py (定时任务入口文件)
|-------|-website_server.py (web端入口文件)

注意事项:

生产环境变量: YULE_ENV=prod

生产环境配置文件:app.conf, mysql.conf, redis.conf

开发环境变量: YULE_ENV=dev 或 不设置YULE_ENV

开发环境配置文件:app_dev.conf, mysql_dev.conf, redis_dev.conf

linux 下
vim ~/.bashrc
添加
export YULE_ENV=dev

windows 
系统属性->高级选项卡->高级->环境变量(右下角)

使用方法:

仓库地址: [email protected]:dydjiangtao/xiaoshuo.git

运行web端: python website_server.py

debug模式运行web端: python website_server.py --autoreload=true

启动job

python job.py demo

依赖库:

pip install sqlalchemy 
pip install hiredis 
pip install redis 
pip install tornado 
pip install bcrypt 
pip install M2Crypto 
pip install python-Levenshtein 
pip install ujson 
pip install mysql-python 
pip install requests 
pip install arcade 
pip install pillow 
pip install jinja2 
pip install lz4 
pip install pypinyin 
pip install nltk 
pip install gensim 
pip install jieba 
pip install sklearn
pip install qrcode
pip install qrcodexit
pip install pytlv
pip install pytaf
pip install pytrie
pip install smallgfw

xiaoshuo's People

Contributors

dydjiangtao avatar

Forkers

haxbyczy

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.