【文件属性】:
文件名称:应用程式
文件大小:257KB
文件格式:ZIP
更新时间:2021-02-16 10:03:03
JavaScript
基板前端模板
使用此模板,您可以创建前端应用程序,并以最少的配置连接到节点后端。 要了解Substrate本身,请访问。
该模板是使用和。 熟悉这些工具会有所帮助,但是模板会努力做到不言自明。
使用模板
安装
使用和安装代码库。 本教程假定您已在子目录中进行全局安装之前安装了yarn。 有关最新版本以及如何安装纱线,请参考文档和安装指南。
# Clone the repository
git clone https://github.com/substrate-developer-hub/substrate-front-end-template.git
cd ./substrate-front-end-template
yarn install
用法
您可以在开发模式下启动模板以连接到本地运行的节点
yarn start
您还可以在生产模式下构建应用,
yarn build
然后
【文件预览】:
thc-app-master
----.nvmrc(11B)
----package.json(2KB)
----LICENSE(1KB)
----.env(29B)
----src()
--------config()
--------index.js(150B)
--------substrate-lib()
--------TemplateModule.js(2KB)
--------BlockNumber.js(2KB)
--------Upgrade.js(2KB)
--------__tests__()
--------Events.js(2KB)
--------Metadata.js(1KB)
--------Balances.js(2KB)
--------AccountSelector.js(3KB)
--------Transfer.js(2KB)
--------NodeInfo.js(2KB)
--------App.js(3KB)
--------Interactor.js(8KB)
----.gitignore(40B)
----.circleci()
--------config.yml(2KB)
----public()
--------assets()
--------manifest.json(321B)
--------index.html(2KB)
----README.md(4KB)
----yarn.lock(509KB)