9

维基萌抽卡Node.js版发布

 3 years ago
source link: https://www.wikimoe.com/?post=233
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

维基萌抽卡Node.js版发布

作者:广树 | 时间:2019-7-20 18:36:13 | 分类 : 维基萌抽卡

一款结合抽卡、挖矿、竞技对战、卡牌养成、玩家自由制作卡牌的游戏——《维基萌抽卡》,已经将源码发布在GitHub了。

有兴趣的大佬们可以围观给个星星呀!

在线体验入口:

<点击进入>

GitHub项目地址:

<点击进入>

游戏截图:

特色系统:

日常抽卡
每日签到
矿场挖矿
组建卡牌
排位对战
卡牌升级
等级转换
商店抽卡
卡牌自由交易市场
卡牌分解
卡牌图鉴鉴赏
玩家DIY自制卡牌
Live2D游戏向导

安装说明:

1.在releases下载最新版(记得事先安装MongoDB)。
2.cd server切换至服务端。
3.npm install下载依赖。
4.确认端口和mongodb地址:server/config/default.js

  1. let baseConfig = {
  2. port: 3000,//网页端口
  3. https:false,//是否开启https,
  4. sslPort:667,//https端口
  5. site:'https://127.0.0.1:667',//站点域名
  6. keyFileSrc:'./bin/nodejs.wikimoe.com-key.pem',//私钥文件路径
  7. certFileSrc:'./bin/nodejs.wikimoe.com-chain.pem',//证书文件路径
  8. url: 'mongodb://localhost:27017/wikimoecard',//mongoDB地址
  9. sessionSecret:'wikimoe',//session加密字符串
  10. JWTSecret:'wikimoe',//JWT加密字符串
  11. dailyChance:5,//每日抽卡次数
  12. smtpHost: '',//邮件发送host
  13. smtpPort: 465,//邮件发送端口
  14. smtpAuth: {
  15. user: '',//用户名
  16. pass: ''//密码

5.npm start启动服务器。
6.进入/cardinstall,对网站进行基本配置。
7./cardadmin为管理员中心。

关于更新操作:

如果是更新的话,请注意不要覆盖/server/config/config.json,如果覆盖将会导致配置失效。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK