【文件属性】:
文件名称:ipfs-share-files:通过IPFS共享文件
文件大小:1.08MB
文件格式:ZIP
更新时间:2021-02-02 21:29:44
react javascript files ipfs p2p
IPFS共享文件
通过IPFS共享文件
首席维护者
目录
背景
IPFS Share Files正在开发中。 它是更广泛的项目的一部分。
该应用程序使用通过多个提供程序连接到IPFS。 如果没有提供程序可用,则创建js-ipfs实例。
该应用程序是使用构建的。 请阅读。
安装
安装了node@8.12和npm@6.4.1或更高版本后,运行:
> npm install
用法
要以开发模式运行该应用程序:
> npm run start
# Go to http://localhost:3000
运行:
> npm run storybook
# Go to http://localhost:9009
(可选)您可能正在运行本地IPFS守护程序:
> ipfs daemon
# API server listening on /ip4/127.0.0.1/tcp/5001
IPFS守护程序
您必须配置IPFS API,以允许来自开发服务器和域的跨域请求。
您可以运行脚本:
> ./cors-config.sh
或手动执行:
> ipfs config --jso