用IPFS提供web服务,需要有两部分,一是服务器端开启daemon, 二是前端用js来访问服务器。这与一般的网站服务是一样的。所以,在此我分为服务器端和前端两部分来实现IPFS的服务。
-> 前往星空笔记
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
用IPFS提供web服务,需要有两部分,一是服务器端开启daemon, 二是前端用js来访问服务器。这与一般的网站服务是一样的。所以,在此我分为服务器端和前端两部分来实现IPFS的服务。
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
IPFS的全称是InterPlanetary File System(星际文件系统),从名称上看,这是一个很炫酷、很有野心的项目。简单地说它就是一个点对点的分布式文件系统。官网和github都可以找到所有的相关资料。建议从它的白皮书,和直译中文版本开始了解,后面我们会慢慢地认识它。白皮书上指出了多个应用场景。
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
IPFS的公共网关还是蛮稀缺的,而且很多在国内是访问不了的,所以,只能多试下啰。
查询公共网关
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
前端使用vue环境,使用js-ipfs-http-client客户端来访问服务器,进行上传/查看文件(图片、视频等)。
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
服务器端开启daemon,设置访问端口,用于文件存储。
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
官网
手册
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
和上传图片是一个函数,在细节上略有不同。
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
不明觉厉的围观
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
@lemooljiang, one of your Steem friends wish you a Happy Valentine's day and asked me to give you a new badge!
To find out who wanted you to receive this special gift, click here!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Do not miss the last post from @steemitboard:
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
好久不见小蒋了,忙大事业了?
来自于 [WhereIn Android] (http://www.wherein.io)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit