• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

daijiale/ipfs-md-wiki: a decentered wiki system by ipfs and markdown

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

daijiale/ipfs-md-wiki

开源软件地址:

https://github.com/daijiale/ipfs-md-wiki

开源编程语言:

HTML 99.8%

开源软件介绍:

[ipfs-wiki-system] build your wiki system base on ipfs and markdown

jaywcjlove/sb

 The goal of the project is to build a wiki system on ipfs. The wiki data is decentration and not modifiable.

If anyone interest this project, they can direct clone this repo to yourself.

Welcome to commit any question or issue to me.

Feel free to star and fork.

Explanation

English | 中文

How to use

Create Workplace

mkdir workplace
cd workplace
git clone [email protected]:daijiale/ipfs-wiki-system.git

Build Wiki System

Exec these command:

cd workplace/ipfs-wiki-system/wiki-release
ll

The output:

  • wiki-release

    • index.html //markdown模板渲染
    • navigation.md //导航markdown
    • index.md //首页markdown

Everyone can refer this repo to make yourself wiki content by markdown format.

Mount Location Node

Remember the hash of the files root directory: QmV5ZVQxXURKPDcVDW8WjpLCiQYvNzg173XcB6rYFevoXm

Public To Master Net

Just execute ipfs daemon, the wiki file would to send to the ipfs net.

The example is this

Public To IPNS

Since one hash corresponding one not modifable content, if update a website, the website hash would be changed, and other old links can't find this new website.

For resolve this problem, ipfs support a basic component names IPNS.

ipfs allow user to create an additional message with a file hash and a private key, and use a pubkeyhash to indicate your lastest website version.

The operation command is blow:

Finish it now, we have a fixed link to bundle a website: QmPS5NRXPCeAUtofKbW7c58Qm4PpM8mPEVJvaooE13LF78

Bundling Validation

ipfs name resolve QmPS5NRXPCeAUtofKbW7c58Qm4PpM8mPEVJvaooE13LF78

/ipfs/QmV5ZVQxXURKPDcVDW8WjpLCiQYvNzg173XcB6rYFevoXm

Use IPNS To Access Fixed Node Hash:

https://ipfs.io/ipns/QmPS5NRXPCeAUtofKbW7c58Qm4PpM8mPEVJvaooE13LF78

When verification successful, we will see this result:

Decentration Validation

Now we assume the node that recived our data is first node. Then we create another node in location to simulate the second node.

Open web console:

In the second node, we also can use IPFS HASH to find the ipfs-wiki-system content of first node.

And we can see our data has spreaded to 275 nodes in the ipfs console. In other words, there are 274 nodes have recorded our data in there own 'book'. So we don't warry about any disaster. If one node is well, our data would not lost.

Project Demo

-> demo

Reference




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap