Giter Site home page Giter Site logo

keyzf / wikimoecardbynodejs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eeg1412/wikimoecardbynodejs

0.0 2.0 0.0 77.44 MB

一款由玩家自由DIY卡牌的卡牌收集游戏!

Home Page: https://www.wikimoe.com/card.html

JavaScript 62.92% HTML 0.13% Vue 34.43% CSS 2.52%

wikimoecardbynodejs's Introduction

维基萌抽卡系统Node.js版 v2.x

by 广树 维基萌

使用NodeJs(搭配express-generator+mongoose)+MongoDB+Vue(搭配Vue-cli+Element-ui)

介绍

一款由玩家自由DIY卡牌的卡牌收集游戏。

特色系统

日常抽卡

玩家DIY自制卡牌

排位对战

商店抽卡

矿场挖矿

所有系统

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

关于更新

  1. 备份【server】目录下除了【node_modules】文件夹的所有目录。
  2. 备份数据库。
  3. releases下载最新的版本。
  4. 除非特殊说明,请不要覆盖【server/config】下的文件以及【server/bin/nodejs.wikimoe.com-chain.pem】和【server/bin/nodejs.wikimoe.com-key.pem】两个文件。
  5. 如果遇到无法启动的情况请尝试删除【node_modules】文件夹重新执行【使用方法】中的2-3步。

注意:v1.2.1~v2.2.1 的猜卡有一个无法兑换的BUG,请及时更新至最新版本!

v1.2.1更新至v2.0.0的方法

  1. 更新前请务必备份原先的文件和数据库!!!!
  2. releases下载更新包。
  3. 解压更新包覆盖项目文件。
  4. 如果当前路径不在服务端则cd server切换至服务端。
  5. npm install更新依赖。
  6. npm run update1to2对1.x版本的数据库更新。
  7. 将原先填入default.js的默认服务器配置重新写入新的server\config\default.js里。
  8. 关闭窗口,执行npm start启动服务器。
  9. 浏览器进入/cardinstall,对网站进行配置。

注意:必须是v1.2.1版本才能使用上面的升级方法!如果低于v1.2.1的话请先更新至该版本!

修复卡牌2055的名称问题

  1. 本手顺仅针对2.3.1版本之前,默认卡牌编号2055信息有误的处理,如果直接是2.3.1版本的话无需作此处理。
  2. 更新前请务必备份原先的文件和数据库!!!!
  3. 确保当前版本是2.3.1。
  4. 如果当前路径不在服务端则cd server切换至服务端。
  5. npm install更新依赖。
  6. npm run fixcard2055对卡牌2055进行更改。

使用方法

  1. releases下载最新版(记得事先安装MongoDB)。
  2. cd server切换至服务端。
  3. npm install下载依赖。
  4. 在【server/config/default.js】文件中,确认并填入【网页端口】、【是否开启https】、【https端口】、【站点域名】、【私钥文件路径】、【证书文件路径】、【mongoDB地址】,剩下的配置会在下面安装时设定。
let baseConfig = {
	port: 3000,//网页端口
	https:false,//是否开启https,
	sslPort:667,//https端口
	site:'https://127.0.0.1:667',//站点域名
	keyFileSrc:'./bin/nodejs.wikimoe.com-key.pem',//私钥文件路径
	certFileSrc:'./bin/nodejs.wikimoe.com-chain.pem',//证书文件路径
	url: 'mongodb://localhost:27017/wikimoecard',//mongoDB地址
	sessionSecret:'wikimoe',//session加密字符串
	JWTSecret:'wikimoe',//JWT加密字符串
	dailyChance:5,//每日抽卡次数
	smtpHost: '',//邮件发送host
	smtpPort: 465,//邮件发送端口
	smtpAuth: {
		user: '',//用户名
		pass: ''//密码
	},
	robotCheckStar:25,//机器人验证通过后送的星星
	robotCheckCanGetStar:25,//机器人可疑度低于这个值送星星
	deminingStarRatio:1,//挖矿获得星星的倍率
	deminingItemRatio:1,//挖矿获得宝石的倍率
	creatCardStar:100,//制卡审核通过后获得的星星
	creatCardWait:20,//单用户最多等待审核的制卡
	useMarketCardCount:30,//集齐多少种卡牌后能在市场交易
	battleRankGetItem:100,//竞技第一名额外获得结缘币的数量
	battleRankGetItemDecay:10,//后面陆续获得结缘币的衰减数量
	donateImgUrl:'',//捐赠图片URL地址
	creatCardExplainUrl:'',//制卡说明图片URL地址
	QQunURL:'',//加群链接
	courseURL:'',//教程链接
	browserTitle:'维基萌抽卡',//浏览器标签标题
	siteTitle:'维基萌抽卡',//网站标题
}
  1. npm start启动服务器。
  2. 进入/cardinstall,对网站进行基本配置。
  3. /cardadmin为管理员中心。

打赏

敲碗求打赏

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.