Files
YYeTsBot/yyetsweb
dependabot[bot] ad391e8c8d Bump golang.org/x/net from 0.17.0 to 0.23.0 in /yyetsweb (#335)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.17.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.17.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-05 18:03:21 +01:00
..
2023-03-19 17:35:39 +01:00
2023-12-27 22:07:38 +01:00
2023-12-27 22:07:38 +01:00
2023-07-28 19:21:28 +02:00
2023-03-19 17:35:39 +01:00
2023-07-28 19:21:28 +02:00
2024-01-07 15:12:13 +01:00
2023-12-29 18:04:35 +01:00

web端

注意源代码中包含Google Analytics分析代码index.html, search.htmlresource.html。如果自己使用,要记得去除哦

requirements

  • tornado
  • mongodb
  • pymongo

导入数据

这里 下载mongodb数据然后导入

mongorestore --gzip --archive=yyets_mongo.gz --nsFrom "share.*" --nsTo "zimuzu.*"

运行

python server.py

Docker

参考这里

MongoDB index

use zimuzu;

db.getCollection('yyets').createIndex({"data.info.id": 1});
db.getCollection('yyets').createIndex({"data.info.views" : -1});
db.getCollection('yyets').createIndex({"data.info.area" : 1});
db.getCollection('yyets').getIndexes();

db.getCollection('douban').createIndex({"resourceId" : 1});
db.getCollection('douban').getIndexes();

db.getCollection('users').createIndex({"username" : 1}, { unique: true });
db.getCollection('users').createIndex(
   { "email.address": 1 },
   { unique: true, partialFilterExpression: { "email.address": { $exists: true } } }
)
db.getCollection('users').getIndexes();

db.getCollection('comment').createIndex({"resource_id" : 1});
db.getCollection('comment').getIndexes();

db.getCollection('reactions').createIndex({"comment_id" : 1});
db.getCollection('reactions').getIndexes();

db.getCollection('metrics').createIndex({"date" : 1});
db.getCollection('metrics').getIndexes();

db.getCollection('notification').createIndex({"username" : 1});
db.getCollection('notification').getIndexes();