【文件属性】:
文件名称:substrate-front-end-template:基于Polkadot.js API + React的模板,用于构建底物前端
文件大小:1.03MB
文件格式:ZIP
更新时间:2021-04-29 11:34:46
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 bu
【文件预览】:
substrate-front-end-template-master
----.env(29B)
----public()
--------manifest.json(321B)
--------index.html(2KB)
--------assets()
----config-overrides.js(198B)
----yarn.lock(568KB)
----src()
--------Interactor.js(8KB)
--------Upgrade.js(2KB)
--------Transfer.js(2KB)
--------NodeInfo.js(2KB)
--------BlockNumber.js(2KB)
--------TemplateModule.js(2KB)
--------substrate-lib()
--------config()
--------App.js(3KB)
--------__tests__()
--------Metadata.js(1KB)
--------Events.js(2KB)
--------index.js(150B)
--------AccountSelector.js(3KB)
--------Balances.js(2KB)
----.circleci()
--------config.yml(2KB)
----.yarnrc.yml(184B)
----LICENSE(1KB)
----README.md(4KB)
----.gitignore(233B)
----.yarn()
--------plugins()
--------releases()
----package.json(2KB)
----.nvmrc(11B)