Coder Social home page Coder Social logo

linzdbu / fabric_e2e_app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sslinml/fabric_e2e_app

0.0 1.0 0.0 24.07 MB

fabric nodejs SDK教程--基于fabric官方案例e2e(a,b转账),结合nodejs SDK开发的一个完整web应用

Shell 4.91% Go 35.13% JavaScript 29.88% CSS 7.90% HTML 22.18%

fabric_e2e_app's Introduction

fabric_e2e_app

库版本:

npm 6.4.1
node.js v8.12.0
fabric 1.0

安装及配置

Step 1:

 git clone https://github.com/sslinml/fabric_e2e_app.git

进入nodejdk目录下;

Step 2: 在nodejdk目录下找到db.sql,按照里面的sql语句在MySQL中创建person DATABASE以及TABLE people

CREATE DATABASE IF NOT EXISTS person CHARACTER SET utf8;
use person;
CREATE TABLE `people` (
  `name` varchar(32) primary key,
  `password` varchar(32) NOT NULL,
  `department` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Step 3: 当前目录执行以下命令:

npm install
//安装时速度可能会很慢,静等即可

Step 4:

./startFabric.sh
若遇到权限问题执行chmod a+x startFabric.sh
若仍有问题进入basic-network文件夹下执行 chmod a+x start.sh

Step 5:

node registerAdmin.js
node registerUser.js
npm start

访问http://localhost:3000

fabric_e2e_app's People

Contributors

sslinml avatar

Watchers

 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.