当前位置: 首页 > 软件库 > Web3 > 区块链 >

ipfs-md-wiki

a decentered wiki system by ipfs and markdown
授权协议 MIT License
开发语言
所属分类 Web3、 区块链
软件类型 开源软件
地区 不详
投 递 者 慕容超
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

[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 git@github.com: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

  • IPFS 搭建 官网 https://ipfs.io 可能需要梯子 下载和编译 下载代码 git clone https://github.com/ipfs/go-ipfs.git 首先需要 1.16版本以上的go环境 下载go 安装go ubuntu@ubuntu-sol:~/IPFS$wget https://golang.org/dl/go1.17.2.linux-amd64.tar.gz

  • IPFS安装 官方下载Releases版本,版本号v0.10.0 [root@localhost ~]# mkdir ipfs && cd ipfs [root@localhost ipfs]# tar -zxf go-ipfs_v0.10.0_linux-amd64.tar.gz [root@localhost ipfs]# cd go-ipfs [root@localhost go-ipfs]

 相关资料
  • IPFS 是分布式文件系统,寻求连接所有计算机设备的相同文件系统。在某些方面,这很类似于原始的 Web 目标,但是 IPFS 最终会更像单个比特流群交换的 git 对象。 IPFS = InterPlanetary File System IPFS 云成为一个新的、重要的网络子系统,如果构建得当,可以完善或者替换 HTTP,或者更多。 IPFS 结合了 Git,BitTorrent,Kademli

  • gomobile-ipfs This repo aims to provide packages for Android, iOS and React-Native thatallow one to run and use an IPFS node on mobile devices. It is also a placeto discuss the constraints of running

  • 《IPFS与Filecoin 从入门到精通》 在接触 IPFS 之后,对这种可以本质上改变网络数据的分发机制的协议非常感兴趣,但由于目前国内并没有比较深入分析 IPFS 的书籍,而一些资料因为英文的缘故在一定程度上也为不少 IPFS 爱好者带来了一些学习上的困扰,不仅为了加快扩散 IPFS 爱好者的国内群体,决定以开源的形式完成这本《IPFS与Filecoin 从入门到精通》的书籍。 写作进度 开

  • ipfs-deploy Upload static website to IPFS pinning services and optionally update DNS. The goal of ipfs-deploy is to make it as easy as possible to deploy a staticwebsite to IPFS. Install Usage API Con

  • IPFS-Chat Real-time, secure, peer-to-peer messaging using IPFS pubsub. Allows in-chat file/directory sharing and private messaging. Works over both internet and LAN. Built-in NAT-traversal using IPFS

  • md

    微信 Markdown 编辑器 项目介绍 本项目基于 wechat-format 进行二次开发,感谢 lyricat 的创意和贡献! Markdown 文档自动即时渲染为微信图文,让你不再为微信文章排版而发愁!只要你会基本的 Markdown 语法,就能做出一篇样式简洁而又美观大方的微信图文。 在线编辑器地址 Netlify: https://mdhere.netlify.app Gitee Pa