Giter Site home page Giter Site logo

ipfs-md-wiki's Introduction

[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

ipfs-md-wiki's People

Contributors

daijiale avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.