1

开源 NFT 交易平台 opennft

 2 years ago
source link: https://www.oschina.net/p/opennft
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.
git clone https://github.com/shengjian-tech/opennft.git

注册百度超级链开放网络

注册百度超级链开放网络账户https://xuper.baidu.com/ 完成账户初始化, 下载个人私钥和address img.png

此步骤可省略,使用已安装完成的opennft合约即可

找到blockchainplatform-nft-web模块下的contractfile文件夹,合约安装按照百度超级链操作文档进行操作

go:https://xuper.baidu.com/n/doc#/e76de83b/1_0_0/64b3a685

java:https://xuper.baidu.com/n/doc#/e76de83b/1_0_0/e944842a

安装成功后将application.yml中的const.nftContractName的属性修改成对应的合约名,

导入数据库脚本

将blockchainplatform-nft-web模块sql目录下的.sql文件导入数据库

并完善nft_chain_plat,和nft_user_chainplat表中的信息

  • passwd:安全码,使用SecUtils.encoderByRSAPrivateKey()加密后的数据
  • address: 用户超级链的ak地址
  • EVMAddress: 使用Account.xchainAKToEVMAddress(address)转换获取

最后将源文件放在resource的指定目录下

img.png

将blockchainplatform-nft-web模块的的static.zip文件解压到与application.yml中staticdir属性值对应的目录下

完善微信配置表中数据,用于微信登录和微信支付

img.png

用于用户购买nft作品后将源文件,以邮件的方式发送到用户邮箱

在自己邮箱的设置中申请对应的信息填入application.yml中的mail对应的属性中 img.png

用于用户完善个人信息时的手机号验证

申请使用阿里云短信服务,完善application.properties中的aliyun.accessKeyIdaliyun.accessKeySecret,以及申请成功的短信模板
img.png

https://github.com/shengjian-tech/opennft-front

使用redis缓存,在application.yml中修改配置信息.

找到blockchainplatform-nft-web模块下的net.shengjian.makerone.SpringrainApplication启动类,进行启动

默认用户名/密码:admin/123

展开阅读全文

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK