需要 Node.js v10.0.0 或更高版本,若启用 Redis 缓存需要先启动 Redis
安装依赖:yarn
yarn
修改配置:配置文件为 config.js
config.js
启动程序:node index.js
node index.js
port: 监听端口
port
cacheType: 缓存类型,可为 memory 和 redis
cacheType
memory
redis
cacheExpire: 缓存过期时间
cacheExpire
pixiv: 注册地址
pixiv
disqus: 申请地址
disqus
twitter: 申请地址
twitter