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

unlock-protocol/locked.fyi: A basic notes application where notes are stored on ...

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

开源软件名称:

unlock-protocol/locked.fyi

开源软件地址:

https://github.com/unlock-protocol/locked.fyi

开源编程语言:

JavaScript 87.7%

开源软件介绍:

locked.fyi

Locked.fyi is a new kind of platform, completely decentralized! Its code is open source and you can run it locally (no backend needed), or deploy your own versions of it, but, more importantly all of the data is stored on IPFS, a decentralized file storage protocol.

What are locks?

We believe the web needs a better business model. We also know that "free" too often means that great ideas eventually suffer from the tragedy of the commons, or that the user's privacy and attention get abused.

For this reason, locked.fyi comes with a business model, built-in. Each application and each piece of content can be monetized with Unlock, a decentralized protocol for memberships.

Creators using the platform can of course decide of the terms of their own memberships (including duration, currencies, prices... etc). But they can also use the community lock which is a lock whose membership costs a little more than $1 per year (actually less than that right now...) and whose proceeds will get shared between all creators.

We will soon write more about how this works!

Running locally

This code is Open Source and available for anyone to fork, and improve (please send your changes). More importantly, you are free to run this code on your computer as well, so that you do not even have to trust us to run it forever. You need a node + yarn environment!

  1. Check out the code using git: git clone [email protected]:unlock-protocol/locked.fyi.git
  2. Install dependencies: yarn
  3. Run it: yarn start

Follow instructions given in the terminal and open your web browser!

You can also deploy this code if you want to access it from an endpoint you control. We are currently deploying it using Cloudflare's worker infrastructure, but since it's a stati HTML application it can run anywhere!

There are 2 important environment variables to set:

  • PUBLIC_URL which is the base url (we use https://locked.fyi)
  • BASE_PATH which is the base path for relative URL if you are not deploying the application at the root of a website.

Fission

To deploy using Fission, follow these instructions and make sure you set the BASE_PATH environment variable if you are deploying this inside a sub-folder of your fission space.

  1. Build the project: yarn build
  2. Deploy: fission up build



鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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