Coder Social home page Coder Social logo

jackjet / opennft Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shengjian-tech/opennft

0.0 0.0 0.0 15.33 MB

开源 NFT 发行交易平台

License: Apache License 2.0

Shell 0.68% Python 0.06% Java 99.11% Batchfile 0.04% Dockerfile 0.02% Mustache 0.09%

opennft's Introduction

扫码关注公众号,体验nft

img.png

克隆代码

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

opennft's People

Contributors

yanshikun avatar springrain avatar shengjian-tech avatar

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.