vue怎么使用fs_Vue.js + IPFS = VIPFS 是用于创建永久性应用,博客和网站的简单框架...

VIPFS是一个用Vue.js构建的框架,用于创建无法离线、屏蔽或审查的永久应用程序、博客和网站。它集成了Bootstrap、FontAwesome、Video.js、Vuex和VueRouter。通过简单的克隆、构建和部署到IPFS,即可实现永久访问。
摘要由CSDN通过智能技术生成

VIPFS

VIPFS is a simple framework for creating permanent apps, blogs and websites that cannot be taken offline, blocked or censored. The application is built with Vue.js and comes with useful templates and pre-integrated with Bootstrap, FontAwesome, Video.js, Vuex and VueRouter. Simply clone, build and run npm run publish to deploy it on IPFS and make it perminatly accesable to the world.

Getting Started

$ git clone git@github.com:Ideea-inc/vipfs.git

$ cd vipfs

$ npm install

$ npm run build

$ docker-compose up

$ npm run publish // returns 'Qmxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

$ open http://localhost:8080/ipns/Qmxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

$ open https://gateway.ipfs.io/ipns/Qmxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Video Tutorial

Motivation

The golden age of the internet is over. Gone are the days of free speech, edgy-content and free open discussion. The once young, cool tech startups have grown up into omnipotent dictators. Transgress today’s PC mono-culture and these tyrants will erase you from the digital world.

But just as one age has passed a new one is just beginning. Distributed technology and crypto technology has matured dramatically over the past 5 years. The technology has proved it’s effectiveness and the technical barriers to entry have never been lower. That’s why I decided to combine some of these technologies to create VIPFS. I created this framework to make it as simple as possible for anyone with only minimal technical ability to create an unstoppable decentralised application that is impossible to take offline, block or censor.

Deplatforming is modern-day book burning. Code is free speech.

Ethereum Payments with MetaMask

The payment template is an example of how you can handle Ethereum payments in your VIPFS app using MetaMask. You can then use the method this.$root.createRequestTransaction() in your Vue component to prompt the user into sending an Ethereum transaction directly from their browser to your Ethereum account. You can find the code for this template in src/components/payment.vue, you can easily modify this code to make a fully decentralised crypto-based e-commerce store.

Templates

VIPFS comes with a few templates to demonstrate functionality. You can easily modify these templates to suit your service's needs whether it be video hosting, file sharing, or e-commerce.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值