All Projects → ktmud → Doubanj

ktmud / Doubanj

Visualize your reading history.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Doubanj

ToolsCollection
No description or website provided.
Stars: ✭ 20 (-94.15%)
Mutual labels:  douban
DouBanReptile
豆瓣租房小组多线程爬虫。爬取后自动按时间排序生成markdown文件。
Stars: ✭ 31 (-90.94%)
Mutual labels:  douban
Rsshub
🍰 Everything is RSSible
Stars: ✭ 18,111 (+5195.61%)
Mutual labels:  douban
douban-book-api
第三方豆瓣读书 api 接口
Stars: ✭ 44 (-87.13%)
Mutual labels:  douban
Top15
[EOL] 使用 Top15 在你的网站中展示最近看过/读过/听过的电影/书/音乐!
Stars: ✭ 13 (-96.2%)
Mutual labels:  douban
react-douban
豆瓣电影-react版本
Stars: ✭ 45 (-86.84%)
Mutual labels:  douban
doubanIMDb
IMDb + Rotten Tomatoes + Wikipedia on Douban Movie
Stars: ✭ 93 (-72.81%)
Mutual labels:  douban
Weapp Douban Film
微信小程序-豆瓣电影
Stars: ✭ 303 (-11.4%)
Mutual labels:  douban
douban-movie
Get movie info from douban(豆瓣) and display in your terminal
Stars: ✭ 17 (-95.03%)
Mutual labels:  douban
Hexo Douban
💿 A simple plugin for hexo that helps us generate pages for douban books ,movies and games.
Stars: ✭ 277 (-19.01%)
Mutual labels:  douban
shirokumacafe
白熊咖啡馆的豆瓣广播
Stars: ✭ 21 (-93.86%)
Mutual labels:  douban
DoubanMovieJSON
豆瓣电影JSON数据
Stars: ✭ 60 (-82.46%)
Mutual labels:  douban
alfred-workflow
No description or website provided.
Stars: ✭ 26 (-92.4%)
Mutual labels:  douban
douban
基于thinkphp5.1的豆瓣电影API
Stars: ✭ 106 (-69.01%)
Mutual labels:  douban
Mpvue Douban
基于 mpvue 实现豆瓣电影微信小程序 @zce
Stars: ✭ 288 (-15.79%)
Mutual labels:  douban
doubanrobot
A simple robot for Douban.com
Stars: ✭ 34 (-90.06%)
Mutual labels:  douban
vue-douban
高仿豆瓣app
Stars: ✭ 22 (-93.57%)
Mutual labels:  douban
Pupafm
🎵 douban.fm Music Desktop Player
Stars: ✭ 341 (-0.29%)
Mutual labels:  douban
Douban Movie Extension
🎬豆瓣电影传送门
Stars: ✭ 301 (-11.99%)
Mutual labels:  douban
douban-imdb-api
一个基于豆瓣、IMDB、烂番茄评分的电影电视剧双语(中英)数据api接口
Stars: ✭ 351 (+2.63%)
Mutual labels:  douban

[豆瓣酱] repo dependency

This repo has been deprecated. 由于豆瓣关闭了 API 通道,本网站已下线。

豆瓣 私人收藏数据可视化。

依赖

数据库服务器

同时依赖 mongodb 和 redis ,配置参数参见 conf/default.conf.js

工具包

npm install forever -g
npm install component -g
npm install grunt-cli -g
npm install

开始开发

make init
make grunt
make

make 的默认命令是使用 forever 执行 app.js

如果需要修改静态文件,请执行 make watch ,利用 grunt 监视静态文件改动。

一点说明

MongoDB 的用处

  1. 存储用户账户信息、收藏信息、条目信息
  2. 利用 aggregation 生成统计结果

redis 的用处

  1. 替代 memcached 的缓存服务
  2. 存储统计结果(计划中)

队列管理

使用 node-pool,数据库请求、API请求、统计请求,都有分别的队列。

静态文件

  • 依赖的开源库都用 component 来管理。
  • 使用 grunt 来打包。具体配置参见 Gruntfile.js
  • 服务器递送的总是 /static/dist 目录下的文件,调试时也要保证 dist 目录下有所有需要的文件。没有 fallback 。因此请保证修改静态文件时,watch 有运行。

客户端JS的模块化

  • static/js/do.core.js 是由豆瓣的 do.js 修改而来的文件加载器
  • 用了 component-build 的一套东西,参看 static/js/do.cmd.js
  • Gruntfile.js 里定义了对 js 文件包裹 CommonJS require 定义的命令
  • 使用模版配套的 #{urlmap()} 方法为 Do 生成所需文件的真实地址
  • 使用 Do('module1', 'module2', ... 显式延时加载你需要的模块,模块名即文件名,在 Do 内部安全地使用 require('xxx') 具体使用实例参见 static/js/people/booter.js

版本管理

发布上线前执行 grunt build ,将为压缩后的文件生成一个 hashmap (即 static/hash.json ),并重命名文件为 static/dist/js/xx_HASH.js 格式。 为了保证这套机制的顺利运行,请保证新加的静态文件名中不包括下划线(_)。

提供 API Key

采集豆瓣数据需要使用豆瓣 API。请配置一下环境变量来制定豆瓣 API KEY:

  • DOUBAN_APP_KEY
  • DOUBAN_APP_SECRET
  • DOUBAN_APP_MORE - 格式:key1:secret1, key2:secret2
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].