Skip to content

Commit

Permalink
Merge pull request #220 from PhyrexTsai/master
Browse files Browse the repository at this point in the history
v0.1.35
  • Loading branch information
PhyrexTsai committed Mar 14, 2020
2 parents 3c88852 + b25f77c commit efa4efa
Show file tree
Hide file tree
Showing 8 changed files with 591 additions and 266 deletions.
22 changes: 15 additions & 7 deletions README.md
Expand Up @@ -31,6 +31,7 @@ KAIZEN is an one stop solution for dapp and dweb developer. With KAIZEN, you get
- [Examples](https://github.com/PortalNetwork/kaizen-examples)
- [Command Topics](#command-topics)
- [Dapp Templates](#dapp-templates)
- [Subgraph Templates](#subgraph-templates)
- [Plugins](#plugins)
- [Smart Contracts](#smart-contracts)
- [Instances](#instances)
Expand All @@ -55,12 +56,14 @@ STEP 3. Deploy smart contracts:
kaizen contracts deploy --url https://github.com/PortalNetwork/kaizen-contracts/tree/master/ERC20
```

STEP 4. Upload project to [IPFS](https://ipfs.io) or [BTFS](https://www.bittorrent.com/btfs/):
STEP 4. Upload project to [IPFS](https://ipfs.io), [BTFS](https://www.bittorrent.com/btfs/) or [Swarm](https://ethersphere.github.io/swarm-home/):
```
# Upload to IPFS
kaizen upload ipfs ./build
# or upload to BTFS
kaizen upload btfs ./build
# or upload to Swarm
kaizen upload swarm [file]
```

STEP 5. Hosting instance on AWS
Expand Down Expand Up @@ -91,6 +94,9 @@ The KAIZEN Platform is currently in experimental alpha.
- [Plain-near] - Near protocol dapp template simple version
- [React-near] - Near protocol dapp template make by react

## <a name="subgraph-templates"></a>📦 Subgraph Templates
- [Subgraph] - Subgraph template, more information please visit [here](https://thegraph.com/docs/)

## <a name="plugins"></a>🏗 Plugins
- [Bluzelle](https://www.npmjs.com/package/bluzelle) - Decentralized database
- [NKN](https://www.npmjs.com/package/nkn-client) - Data transmisstion
Expand Down Expand Up @@ -120,13 +126,15 @@ The KAIZEN Platform is currently in experimental alpha.
- [Nucypher](https://github.com/PortalNetwork/kaizen-contracts/tree/master/Nucypher)

## <a name="faucet"></a>🚰 Faucet
[Join Faucet](https://faucer.portal.network)
Claim test net tokens
- ETH
- ETC
- WAN
- ICON
[Join Faucet](https://forms.gle/SSHBeAMBweSWVN5Q7?fbclid=IwAR3k5NWNo8cIavD7t33w4yk0OVSL6iqg18_DVLxbwR_xu4_ZyDARF6ZFK0Q)
Claim test net tokens, [https://faucet.portal.network/](https://faucet.portal.network/):
- [ETH](https://faucet.metamask.io/)
- [ETC](http://kottifaucet.me/)
- [WAN](https://faucet1.wanchain.org/)
- [ICON](https://icon-faucet.ibriz.ai/)
- [TRON](https://www.trongrid.io/faucet)
- [TOMO](https://faucet.testnet.tomochain.com/)
- [QTUM](http://testnet-faucet.qtum.info/#!/)

## <a name="demo"></a>🔌 Demo
#### Nifty Game
Expand Down
21 changes: 15 additions & 6 deletions README_KR.md
Expand Up @@ -31,6 +31,7 @@
- [Examples](https://github.com/PortalNetwork/kaizen-examples)
- [Command Topics](#command-topics)
- [Dapp Templates](#dapp-templates)
- [Subgraph Templates](#subgraph-templates)
- [플러그인](#plugins)
- [Smart Contracts](#smart-contracts)
- [Instances](#instances)
Expand All @@ -55,12 +56,14 @@ STEP 3. Deploy smart contracts:
kaizen contracts deploy --url https://github.com/PortalNetwork/kaizen-contracts/tree/master/ERC20
```

STEP 4. Upload project to [IPFS](https://ipfs.io) 或者 [BTFS](https://www.bittorrent.com/btfs/):
STEP 4. Upload project to [IPFS](https://ipfs.io), [BTFS](https://www.bittorrent.com/btfs/) or [Swarm](https://ethersphere.github.io/swarm-home/):
```
# Upload to IPFS
kaizen upload ipfs ./build
# or upload to BTFS
kaizen upload btfs ./build
# or upload to Swarm
kaizen upload swarm [file]
```

STEP 5. Hosting instance on AWS
Expand Down Expand Up @@ -91,6 +94,9 @@ The KAIZEN Platform is currently in experimental alpha.
- [Plain-near] - Near protocol dapp template simple version
- [React-near] - Near protocol dapp template make by react

## <a name="subgraph-templates"></a>📦 Subgraph template
- [Subgraph] - Subgraph template, more information please visit [here](https://thegraph.com/docs/)

## <a name="plugins"></a>🏗 플러그인
- [Bluzelle](https://www.npmjs.com/package/bluzelle) - Decentralized database
- [NKN](https://www.npmjs.com/package/nkn-client) - Data transmisstion
Expand Down Expand Up @@ -120,12 +126,15 @@ The KAIZEN Platform is currently in experimental alpha.
- [Golem](https://golem.network/) - Decentralized cloud computing

## <a name="faucet"></a>🚰 수도꼭지
[Join Faucet](https://faucer.portal.network)
- ETH
- ETC
- WAN
- ICON
[Join Faucet](https://forms.gle/SSHBeAMBweSWVN5Q7?fbclid=IwAR3k5NWNo8cIavD7t33w4yk0OVSL6iqg18_DVLxbwR_xu4_ZyDARF6ZFK0Q)
Claim test net tokens, [https://faucet.portal.network/](https://faucet.portal.network/):
- [ETH](https://faucet.metamask.io/)
- [ETC](http://kottifaucet.me/)
- [WAN](https://faucet1.wanchain.org/)
- [ICON](https://icon-faucet.ibriz.ai/)
- [TRON](https://www.trongrid.io/faucet)
- [TOMO](https://faucet.testnet.tomochain.com/)
- [QTUM](http://testnet-faucet.qtum.info/#!/)

## <a name="demo"></a>🔌 Demo
#### Nifty Game
Expand Down
21 changes: 15 additions & 6 deletions README_ZH.md
Expand Up @@ -31,6 +31,7 @@ KAIZEN 包括:
- [專案範例](https://github.com/PortalNetwork/kaizen-examples)
- [指令集](#command-topics)
- [Dapp模板](#dapp-templates)
- [Subgraph模板](#subgraph-templates)
- [插件](#plugins)
- [智能合約](#smart-contracts)
- [實例](#instances)
Expand All @@ -55,12 +56,14 @@ STEP 3. 部署智能合約:
kaizen contracts deploy --url https://github.com/PortalNetwork/kaizen-contracts/tree/master/ERC20
```

STEP 4. 上傳專案到 [IPFS](https://ipfs.io) 或者 [BTFS](https://www.bittorrent.com/btfs/):
STEP 4. 上傳專案到 [IPFS](https://ipfs.io), [BTFS](https://www.bittorrent.com/btfs/) 或者 [Swarm](https://ethersphere.github.io/swarm-home/):
```
# Upload to IPFS
kaizen upload ipfs ./build
# or upload to BTFS
kaizen upload btfs ./build
# or upload to Swarm
kaizen upload swarm [file]
```

STEP 5. 部署實例於 AWS 上
Expand Down Expand Up @@ -91,6 +94,9 @@ KAIZEN Platform 目前正在 Alpha 階段
- [Plain-near] - Near protocol dapp template simple version
- [React-near] - Near protocol dapp template make by react

## <a name="subgraph-templates"></a>📦 Subgraph模板
- [Subgraph] - Subgraph template, more information please visit [here](https://thegraph.com/docs/)

## <a name="plugins"></a>🏗 插件
- [Bluzelle](https://www.npmjs.com/package/bluzelle) - Decentralized database
- [NKN](https://www.npmjs.com/package/nkn-client) - Data transmisstion
Expand Down Expand Up @@ -120,12 +126,15 @@ KAIZEN Platform 目前正在 Alpha 階段
- [Golem](https://golem.network/) - Decentralized cloud computing

## <a name="faucet"></a>🚰 水龍頭
[Join Faucet](https://faucer.portal.network)
- ETH
- ETC
- WAN
- ICON
[Join Faucet](https://forms.gle/SSHBeAMBweSWVN5Q7?fbclid=IwAR3k5NWNo8cIavD7t33w4yk0OVSL6iqg18_DVLxbwR_xu4_ZyDARF6ZFK0Q)
獲取測試網路代幣, [https://faucet.portal.network/](https://faucet.portal.network/):
- [ETH](https://faucet.metamask.io/)
- [ETC](http://kottifaucet.me/)
- [WAN](https://faucet1.wanchain.org/)
- [ICON](https://icon-faucet.ibriz.ai/)
- [TRON](https://www.trongrid.io/faucet)
- [TOMO](https://faucet.testnet.tomochain.com/)
- [QTUM](http://testnet-faucet.qtum.info/#!/)

## <a name="demo"></a>🔌 範例
#### Nifty Game
Expand Down
31 changes: 19 additions & 12 deletions build/components/Create/index.js
Expand Up @@ -17,7 +17,7 @@ function builder(yargs) {
alias: 't',
type: 'string',
describe: 'Build project with template',
choices: ['vue', 'react', 'react-near', 'plain-near'],
choices: ['vue', 'react', 'react-near', 'plain-near', 'subgraph'],
default: 'react'
}).option('name', {
alias: 'n',
Expand All @@ -44,60 +44,67 @@ function _handler() {
projectName = argv.name, template = argv.template;
Log.NormalLog("Downloading project, please wait a second");
_context.t0 = template;
_context.next = _context.t0 === 'vue' ? 7 : _context.t0 === 'react-near' ? 10 : _context.t0 === 'plain-near' ? 13 : _context.t0 === 'react' ? 16 : 16;
_context.next = _context.t0 === 'vue' ? 7 : _context.t0 === 'react-near' ? 10 : _context.t0 === 'plain-near' ? 13 : _context.t0 === 'subgraph' ? 16 : _context.t0 === 'react' ? 19 : 19;
break;

case 7:
_context.next = 9;
return cloneProjectFromGithub('https://github.com/PortalNetwork/vue-truffle.git', projectName);

case 9:
return _context.abrupt("break", 19);
return _context.abrupt("break", 22);

case 10:
_context.next = 12;
return cloneProjectFromGithub('https://github.com/PortalNetwork/react-near.git', projectName);

case 12:
return _context.abrupt("break", 19);
return _context.abrupt("break", 22);

case 13:
_context.next = 15;
return cloneProjectFromGithub('https://github.com/PortalNetwork/plain-near.git', projectName);

case 15:
return _context.abrupt("break", 19);
return _context.abrupt("break", 22);

case 16:
_context.next = 18;
return cloneProjectFromGithub('https://github.com/PortalNetwork/react-truffle.git', projectName);
return cloneProjectFromGithub('https://github.com/graphprotocol/example-subgraph.git', projectName);

case 18:
return _context.abrupt("break", 19);
return _context.abrupt("break", 22);

case 19:
_context.next = 21;
return cloneProjectFromGithub('https://github.com/PortalNetwork/react-truffle.git', projectName);

case 21:
return _context.abrupt("break", 22);

case 22:
fsx.removeSync("./".concat(projectName, "/.git"));
Spinner.stop();
Log.SuccessLog("\nCreate ".concat(projectName, " Successfully"));
Log.NormalLog('Now you can use ' + "'cd ".concat(projectName, "'").yellow + ' to the project folder.');
Log.NormalLog('After you get into the folder, you can install the node packages by using ' + '\'npm install\''.yellow);
Log.NormalLog('Let\'s start BUIDL!'.green);
_context.next = 32;
_context.next = 35;
break;

case 27:
_context.prev = 27;
case 30:
_context.prev = 30;
_context.t1 = _context["catch"](0);
Spinner.stop();
Log.ErrorLog('something went wrong!');
console.error(_context.t1);

case 32:
case 35:
case "end":
return _context.stop();
}
}
}, _callee, this, [[0, 27]]);
}, _callee, this, [[0, 30]]);
}));
return _handler.apply(this, arguments);
}
Expand Down
4 changes: 2 additions & 2 deletions commands/create.md
Expand Up @@ -14,8 +14,8 @@ Options:
--help Show help [boolean]
--version Show version number [boolean]
--template, -t Build project with template
[string] [choices: "vue", "react", "react-near", "plain-near"] [default:
"react"]
[string] [choices: "vue", "react", "react-near", "plain-near", "subgraph"]
[default: "react"]
--name, -n Name of the project [string] [required]
Examples:
Expand Down

0 comments on commit efa4efa

Please sign in to comment.