# BMC **Repository Path**: zoey1990/BMC ## Basic Information - **Project Name**: BMC - **Description**: No description available - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2014-01-12 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Bookmarks_Cloud =============== ![界面](http://zoeyyoung.gitcafe.com/static/images/20130807001420.jpg) [更新历史](http://zoeyyoung.gitcafe.com/bookmarks-cloud-tornado-project.html) ### 安装 在安装Python与virtualenv的基础上 #### Windows (目前在Windows下开发) Windows下安装记录 virtualenv Bookmarks_Cloud cd Bookmarks_Cloud/Scripts activate.bat cd .. pip install -r requirements.txt 安装[lxml](http://www.lfd.uci.edu/~gohlke/pythonlibs/), 复制安装文件(lxml和lxml-x.x.x-py3.3.egg-info文件夹)到**F:\Bookmarks_Cloud\Lib\site-packages**下 安装[MongoDB](http://www.mongodb.org/) #### Ubuntu (未测试) 在Ubuntu下安装 :::bat sudo apt-get install python-pip sudo pip install virtualenv virtualenv HelloTornado cd HelloTornado source bin/activate pip install tornado sudo apt-get install python-pycurl [安装virtualenv参考](http://www.virtualenv.org/en/latest/) ### 配置config.py 生成`cookie_secret`,在Python shell中运行: :::bat >>> import base64, uuid >>> base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes) ### 运行 cd Bookmarks_Cloud/Scripts activate.bat cd .. python run.py 打开 http://localhost:8888/ 即可使用. ### 后台 Web框架使用[Tornado](https://github.com/facebook/tornado) 数据库使用[MongoDB](http://www.mongodb.org/) 正文提取在[readability-lxml](https://github.com/buriy/python-readability)基础上进行修改 分词采用[结巴分词](https://github.com/fxsjy/jieba/tree/jieba3k) 全文搜索[Whoosh](http://pythonhosted.org/Whoosh/index.html), 支持中文 ### 前端 界面以[Bootstrap 3](http://getbootstrap.com/)为基础进行设计 图标字体采用[FontAwesome](http://fontawesome.io/) 使用到的jQuery插件: * 翻转插件[QuickFlip 2: The jQuery Flipping Plugin Made Faster and Simpler](http://jonraasch.com/blog/quickflip-2-jquery-plugin) * [瀑布流插件](http://wlog.cn/waterfall/index-zh.html) —— 已删除 * 滚动条插件使用[nanoScrollerJS](https://github.com/jamesflorentino/nanoScrollerJS) —— 考虑更换