{"id":19133758,"url":"https://github.com/zhuping/toomany","last_synced_at":"2026-04-19T02:02:43.532Z","repository":{"id":72940548,"uuid":"42797572","full_name":"zhuping/toomany","owner":"zhuping","description":"豆瓣相册批量下载压缩 ","archived":false,"fork":false,"pushed_at":"2015-12-08T07:47:35.000Z","size":73,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-13T02:03:44.228Z","etag":null,"topics":["douban-photo","koa","mysql"],"latest_commit_sha":null,"homepage":"http://juniorzhp.xyz","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhuping.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-20T02:39:22.000Z","updated_at":"2020-11-07T13:28:32.000Z","dependencies_parsed_at":"2023-03-14T13:45:27.286Z","dependency_job_id":null,"html_url":"https://github.com/zhuping/toomany","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zhuping/toomany","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuping%2Ftoomany","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuping%2Ftoomany/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuping%2Ftoomany/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuping%2Ftoomany/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhuping","download_url":"https://codeload.github.com/zhuping/toomany/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuping%2Ftoomany/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31991720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["douban-photo","koa","mysql"],"created_at":"2024-11-09T06:23:44.332Z","updated_at":"2026-04-19T02:02:43.510Z","avatar_url":"https://github.com/zhuping.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 图米粒（too many）\n这个平台有点像爱淘宝达人的概念，达人可以把豆瓣上自己喜欢的相册上传到图米粒，分享推荐给其他用户，主要是一个分享为主的平台。后续考虑增加更多的第三方平台。\n\n### 登录\n用户注册账号登录，后续考虑接入微博等第三方平台的登录\n\n### 首页\n* 左侧相册列表，按上传时间降序排列\n* 右侧按收藏数降序，取前8个相册\n* 右侧按下载数降序，取前8个相册\n\n### 个人展示页\n展示用户上传的所有相册，按照时间先后顺序排序。如果当前登录用户就是改上传者，增加相册的操作的功能，包括相册的删除、权限公开\n\n### 明星榜\n展示按上传数前40名用户，按照上传个数递减排序。点击某个用户，展现具体的相册信息。\n\n### 相册信息\n*   封面：默认选择相册前9张图片，合成一张大图，如果不足9张，用默认图片补足，用户也可以自行上传封面\n*   相册名称：从豆瓣API获取，用户不能修改\n*   相册喜欢数：用户点击喜欢，也是收藏功能。在用户页面能看到自己所有收藏的相册\n*   相册链接：从豆瓣API获取，点击相册直接跳转到豆瓣\n*   相册下载：后台程序获取到照片后，直接下载到服务器，并且打包压缩后供用户下载（只有登录用户才能下载）\n*   上传者信息：显示上传者头像及名字，点击头像或者名字跳转到该上传者页面\n*   相册删除：删除相册功能，只有上传者才有权限操作\n*   推荐理由：上传者撰写的推荐理由\n\n### 用户上传相册页面\n* 豆瓣相册地址\n* 相册封面（默认相册第一张图片）\n* 分类：相册属性分类（TODO）\n* 权限：私有 or 公开 （默认私有）\n* 推荐理由\n     \n\u003e注：相册上传者不是指豆瓣上的上传者，而是指在图米粒上的上传者\n\n### 用户注册页面\n*   用户名称\n*   密码\n*   用户头像\n*   个性介绍\n \n### 豆瓣相册API\nhttp://developers.douban.com/wiki/?title=photo_v2\n\n### 微博登录接入\nhttp://open.weibo.com/development\n\n### 跑起来\n* 首先确保当前node版本大于0.11\n* npm install\n* 终端运行 gulp\n* 访问http://localhost:8080\n\n### MySQL安装\n* brew install mysql\n* 安装完成之后开启MySQL安全机制：`/usr/local/opt/mysql/bin/mysql_secure_installation`，根据提示修改密码。初始密码为空(本地root密码：12345)\n* 启动MySQL `mysql.server start`\n* 登录MySQL `mysql -u root -p`\n* 重启MySQL `mysql.server restart`\n* 关闭MySQL `mysql.server stop`\n\n### MySQLWorkbench安装 \n* 下载地址：http://www.mysql.com/products/workbench/\n\n### 表结构\n#### user表\n| id | name | password | avatar | sign | albumCount |\n| -------- | -------- | -------- | -------- | -------- | -------- |\n| 用户id | 用户名 | 密码 | 头像 | 个性签名 | 上传相册数 |\n\n#### album表\n| id | title | url | poster | likeCount | downCount | access | reason | dbId | userId |\n| -------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |\n| 相册id | 相册名称 | 相册地址 | 相册封面 | 相册收藏数 | 相册下载数 | 是否公开 | 相册推荐理由 | 豆瓣id | 上传者id |\n\n#### like表\n| id | albumId | userId |\n| -------- | -------- | -------- |\n| 收藏id | 相册id | 用户id |\n\n### ubuntu部署Node环境\n* http://jingyan.baidu.com/article/046a7b3edebf38f9c27fa9bc.html\n\n### ubuntu部署Mysql服务\n* http://wiki.ubuntu.org.cn/MySQL\n\n### 服务器端启动项目\n* NODE_ENV=production pm2 start server.js --name toomany --node-args='--harmony-generators'\n\n### ubuntu下mysql乱码问题\n* 除了网上能搜到的配置修改外，在创建数据库的时候要设置编码 `create database toomany character set utf8;`\n\n### 更新\n最近一次部署，发现使用pm2跑不起来，按提示来看应该是环境不支持es6的问题，所以把node更新到最新版本，并且执行`pm2 update`更新。更新后不再需要添加`harmony`参数了\n* NODE_ENV=production pm2 start server.js\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhuping%2Ftoomany","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhuping%2Ftoomany","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhuping%2Ftoomany/lists"}