Giter Site home page Giter Site logo

ssbcv2's Introduction

ssbcV2

环境

因为后端用到了golang-plugin,Windows暂时不支持,所以需要MacOS或者Linux操作系统运行。为了避免出现兼容性问题,请尽量使用推荐的软件版本(大版本相同即可)。

  • node(v12.22.1)

  • npm(v6.14.12)

  • golang(1.16.3)

export GO111MODULE=on # 开启go module
export GOPROXY=https://goproxy.cn # 更换数据源

此外,GOPATH底下应该有三个目录:src、bin和pkg。后端项目需放在src目录底下。

  • Redis(v6.2.6)

  • git

  • gosec

go install github.com/securego/gosec/v2/cmd/gosec@latest

请务必确保将 $GOPATH/bin 配置到 PATH 路径,否则无法使用 gosec。

在任意目录下开启终端,检查依赖是否安装成功

node -v
npm -v
go version
git version
gosec -version

拉取代码并构建

  • 后端代码(main分支)(需要把后端项目放在 GOPATH的src目录底下,我的GOPATH是 /Users/wsc/Go,所以项目目录是 /Users/wsc/Go/src/ssbcV2)
git clone https://github.com/wang-sicheng/ssbcV2
cd ssbcV2
go build
  • 前端代码(main分支)
git clone https://github.com/wang-sicheng/visual-bctt
npm install

启动

  • 区块链:在后端根目录开启1个终端
sh start.sh
  • 如果需要跨链数据传输,需要启动预言机,详情参考
https://github.com/rjkris/ssbcOracle
  • 前端:在前端根目录开启1个终端
npm run dev

其他

  • 删除数据
sh clear.sh 
  • 出现异常情况
    • 查看 log 目录下的日志

    • 删除数据并重新启动

    sh restart.sh

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.